#13 push image with both tags
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit

This commit is contained in:
Csaba 2024-01-18 13:46:38 +01:00
parent c8b8aa8b36
commit dc482f70dd

4
Jenkinsfile vendored
View file

@ -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')
}
}
}