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

Tag latest image other than build it again #10

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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