Update deploy-docker.sh

this fixes a case where latest was re-added to the tags for pushing after image artifact creation
This commit is contained in:
Russel Waters 2021-05-12 10:57:10 -07:00 committed by GitHub
commit 024c1dfe8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ if [ -n "$DOCKER_PASSWORD" ]; then
echo "Deployed nano-env"
exit 0
else
tags=$(docker images --format '{{.Repository}}:{{.Tag }}' | grep nanocurrency | grep -vE "env|ghcr.io|none")
tags=$(docker images --format '{{.Repository}}:{{.Tag }}' | grep nanocurrency | grep -vE "env|ghcr.io|none|latest")
for a in $tags; do
"$scripts"/custom-timeout.sh 30 docker push "$a"
done