fix: also push :latest tag on every build

values.yaml image.tag defaults to 'latest' for initial deploy.
Pipeline always pushes both <branch>-<random8> and :latest so
ArgoCD can pull the newest image without a chart version bump.
This commit is contained in:
2026-04-26 15:00:31 +07:00
parent 2e3a68421b
commit 647a6f28a7

View File

@@ -34,6 +34,8 @@ def call(Map config) {
docker login ${registry} -u \${HARBOR_USER} -p \${HARBOR_PASS}
docker build -f ${dockerfile} -t ${fullImage}:${tag} ${context}
docker push ${fullImage}:${tag}
docker tag ${fullImage}:${tag} ${fullImage}:latest
docker push ${fullImage}:latest
"""
}