latest versions check update

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2017-06-05 17:02:36 -04:00
parent a22f3334af
commit 47fc274cd9
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
3 changed files with 14 additions and 3 deletions

View File

@ -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

View File

@ -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 \

View File

@ -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 \