mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
latest versions check update
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
a22f3334af
commit
47fc274cd9
|
@ -44,9 +44,12 @@ get_latest() {
|
|||
|
||||
local current=$(cat "${dir}/Dockerfile" | grep -m 1 VERSION | awk '{print $(NF)}')
|
||||
|
||||
if [[ "$tag" =~ "$current" ]] || [[ "$name" =~ "$current" ]] || [[ "$current" =~ "$tag" ]]; then
|
||||
if [[ "$tag" =~ "$current" ]] || [[ "$name" =~ "$current" ]] || [[ "$current" =~ "$tag" ]] || [[ "$current" == "master" ]]; then
|
||||
echo -e "\e[36m${dir}:\e[39m current ${current} | ${tag} | ${name}"
|
||||
else
|
||||
if [[ "$dir" != "vscode" ]] && [[ "$dir" != "zookeeper" ]]; then
|
||||
bad_versions+=( "${dir}" )
|
||||
fi
|
||||
echo -e "\e[31m${dir}:\e[39m current ${current} | ${tag} | ${name} | https://github.com/${repo}/releases"
|
||||
fi
|
||||
}
|
||||
|
@ -78,10 +81,18 @@ znc/znc
|
|||
apache/zookeeper
|
||||
)
|
||||
|
||||
bad_versions=()
|
||||
|
||||
main() {
|
||||
for p in ${projects[@]}; do
|
||||
get_latest "$p"
|
||||
done
|
||||
|
||||
if [[ ${#bad_versions[@]} -ne 0 ]]; then
|
||||
echo
|
||||
echo "These Dockerfiles are not up to date: ${bad_versions[@]}" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
main
|
||||
|
|
|
@ -14,7 +14,7 @@ RUN apk add --no-cache \
|
|||
python
|
||||
|
||||
# Get the source
|
||||
ENV PLEXPY_VERSION v1.4.18
|
||||
ENV PLEXPY_VERSION v1.4.19
|
||||
RUN git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy \
|
||||
&& ( \
|
||||
cd /opt/plexpy \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
FROM ubuntu:16.04
|
||||
LABEL maintainer "Christian Koep <christiankoep@gmail.com>"
|
||||
|
||||
ENV POWERSHELL_VERSION 6.0.0-beta.1
|
||||
ENV POWERSHELL_VERSION 6.0.0-beta.2
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ca-certificates \
|
||||
|
|
Loading…
Reference in New Issue
Block a user