diff --git a/ci/actions/linux/deploy-docker.sh b/ci/actions/linux/deploy-docker.sh index cf283e9b..a49f0b9b 100755 --- a/ci/actions/linux/deploy-docker.sh +++ b/ci/actions/linux/deploy-docker.sh @@ -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