mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-04-11 22:52:46 +02: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)}')
|
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}"
|
echo -e "\e[36m${dir}:\e[39m current ${current} | ${tag} | ${name}"
|
||||||
else
|
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"
|
echo -e "\e[31m${dir}:\e[39m current ${current} | ${tag} | ${name} | https://github.com/${repo}/releases"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -78,10 +81,18 @@ znc/znc
|
|||||||
apache/zookeeper
|
apache/zookeeper
|
||||||
)
|
)
|
||||||
|
|
||||||
|
bad_versions=()
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
for p in ${projects[@]}; do
|
for p in ${projects[@]}; do
|
||||||
get_latest "$p"
|
get_latest "$p"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ ${#bad_versions[@]} -ne 0 ]]; then
|
||||||
|
echo
|
||||||
|
echo "These Dockerfiles are not up to date: ${bad_versions[@]}" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
@ -14,7 +14,7 @@ RUN apk add --no-cache \
|
|||||||
python
|
python
|
||||||
|
|
||||||
# Get the source
|
# 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 \
|
RUN git clone https://github.com/drzoidberg33/plexpy.git /opt/plexpy \
|
||||||
&& ( \
|
&& ( \
|
||||||
cd /opt/plexpy \
|
cd /opt/plexpy \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
LABEL maintainer "Christian Koep <christiankoep@gmail.com>"
|
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 \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user