From 18c015a3b6e95b1de41f962f7bd011c7e99d56a0 Mon Sep 17 00:00:00 2001 From: Francia Csaba Date: Wed, 20 Dec 2023 14:32:35 +0100 Subject: [PATCH] [#13] Push with latest and build number tag --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 54a7d73..2a6c710 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,7 +54,9 @@ pipeline { echo 'Pushing image to registry' script { docker.withRegistry(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') } } }