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