From 0307f66142caeba4397816dee99a1342c82adb1d Mon Sep 17 00:00:00 2001 From: levy <897895407@qq.com> Date: Sat, 30 Dec 2023 11:12:01 +0800 Subject: [PATCH] fix: push with specify tag --- src/devops/docker-build-and-push-script.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/devops/docker-build-and-push-script.md b/src/devops/docker-build-and-push-script.md index 732e04b6..90b0a958 100644 --- a/src/devops/docker-build-and-push-script.md +++ b/src/devops/docker-build-and-push-script.md @@ -74,7 +74,8 @@ if [ "$push" = true ]; then # 推送 echo "Pushing to registry..." - docker push ${IMAGE}:${IMAGE_TAG} -a + docker push ${IMAGE}:${IMAGE_TAG} + docker push ${IMAGE}:latest echo "Build and push complete!" else