From 8a512f603f63063a0ca2950534ddef4bfd5504b0 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Wed, 20 Nov 2024 14:47:45 +0100 Subject: [PATCH] Publish release if TAG name exists --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index c0e936e..802522e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -72,6 +72,10 @@ pipeline { docker.image("${DOCKER_IDENTITY}").push("latest") docker.image("${DOCKER_IDENTITY_NGINX}").push("latest") } + if (env.TAG_NAME) { + docker.image("${DOCKER_IDENTITY}").push("${env.TAG_NAME}") + docker.image("${DOCKER_IDENTITY_NGINX}").push("${env.TAG_NAME}") + } } } }