From 8c3a90789e4e0ef360603803cb3b21c0dbb02b51 Mon Sep 17 00:00:00 2001 From: Russel Waters <6511720+argakiig@users.noreply.github.com> Date: Tue, 8 Feb 2022 02:04:37 -0800 Subject: [PATCH] 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 --- ci/actions/linux/deploy-docker.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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