From 8040c09deec24ac9d728feb0778be109c13c5107 Mon Sep 17 00:00:00 2001 From: Chen Shijiang Date: Thu, 8 Apr 2021 20:07:19 +0800 Subject: [PATCH] :rocket: Tag latest image other than build it again --- scripts/build-push.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/build-push.sh b/scripts/build-push.sh index f93fa1c..fea538e 100644 --- a/scripts/build-push.sh +++ b/scripts/build-push.sh @@ -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