From dc482f70dd4d32d1f22c2626f4a79050155734fa Mon Sep 17 00:00:00 2001 From: Francia Csaba Date: Thu, 18 Jan 2024 13:46:38 +0100 Subject: [PATCH] #13 push image with both tags --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f62ab17..fc9a6f7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,7 +53,9 @@ pipeline { echo 'Pushing image to registry' script { docker.withRegistry(DOCKER_REGISTRY_URL, 'AMARILLO-JENKINS-GITEA-USER'){ - docker.image("${OWNER}/${IMAGE_NAME}:${TAG}").push() + def image = docker.image("${OWNER}/${IMAGE_NAME}:${TAG}") + image.push() + image.push('latest') } } }