Comment + test latest hub tag

Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
Adam Hill 2020-02-26 08:57:38 -06:00
parent 91ab080476
commit d20bde221b
No known key found for this signature in database
GPG Key ID: 85EEB6BCCC9B7248
1 changed files with 3 additions and 1 deletions

View File

@ -33,12 +33,14 @@ if [[ -n "$DOCKER_TAG" ]]; then
ARCH_IMAGE="${ARCH_IMAGE/%-/}"
fi
# To get latest released, cut a release on https://github.com/pi-hole/docker-pi-hole/releases (manually gated for quality control)
latest_tag=''
if ! latest_tag=$(curl -sI https://github.com/pi-hole/docker-pi-hole/releases/latest | grep --color=never -i Location | awk -F / '{print $NF}' | tr -d '[:cntrl:]'); then
print "Failed to retrieve latest docker-pi-hole release metadata"
else
if [[ "$DOCKER_TAG" == "$latest_tag" ]] ; then
LATEST_IMAGE="$BASE_IMAGE:latest"
#LATEST_IMAGE="$BASE_IMAGE:latest"
LATEST_IMAGE="$BASE_IMAGE:testing_latest_deleteme"
fi
fi