[#13] Push with latest and build number tag
All checks were successful
Amarillo/amarillo-gitea/amarillo-core/pipeline/head This commit looks good

This commit is contained in:
Csaba 2023-12-20 14:32:35 +01:00
parent 49459b8f70
commit 18c015a3b6

4
Jenkinsfile vendored
View file

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