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:
parent
e3e6ce8218
commit
8c3a90789e
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue