exclude latest for live (#3577)

* exclude latest and latest-including-rc for live
still allow for beta or test network runs

* Update deploy-docker.sh
This commit is contained in:
Russel Waters 2022-02-08 02:04:37 -08:00 committed by GitHub
commit 8c3a90789e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,9 +7,6 @@ TRAVIS_BRANCH=$(git branch | cut -f2 -d' ')
tags=()
if [ -n "$TRAVIS_TAG" ]; then
tags+=("$TRAVIS_TAG")
if [[ "$GITHUB_WORKFLOW" = "Beta" || "$GITHUB_WORKFLOW" = "Test" ]]; then
tags+=(latest latest-including-rc)
fi
elif [ -n "$TRAVIS_BRANCH" ]; then
TRAVIS_TAG=$TRAVIS_BRANCH
tags+=("$TRAVIS_BRANCH")
@ -51,7 +48,11 @@ 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|latest")
if [[ "$GITHUB_WORKFLOW" = "Live" ]]; then
tags=$(docker images --format '{{.Repository}}:{{.Tag }}' | grep nanocurrency | grep -vE "env|ghcr.io|none|latest")
else
tags=$(docker images --format '{{.Repository}}:{{.Tag }}' | grep nanocurrency | grep -vE "env|ghcr.io|none")
fi
for a in $tags; do
"$scripts"/custom-timeout.sh 30 docker push "$a"
done