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}") + } } } }