Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
🚀 Tag latest image other than build it again
Browse files Browse the repository at this point in the history
  • Loading branch information
Dectinc committed Apr 8, 2021
1 parent fe8f4c1 commit 8040c09
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/build-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ set -x

echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

docker build -t tiangolo/node-frontend:10 .
TAG=${TAG:-10}

docker build -t tiangolo/node-frontend:latest .
docker build -t tiangolo/node-frontend:${TAG} .

docker push tiangolo/node-frontend:10
docker tag tiangolo/node-frontend:${TAG} tiangolo/node-frontend:latest

docker push tiangolo/node-frontend:${TAG}

docker push tiangolo/node-frontend:latest

0 comments on commit 8040c09

Please sign in to comment.