[#13] Push with latest and build number tag
All checks were successful
Amarillo/amarillo-gitea/amarillo-core/pipeline/head This commit looks good
All checks were successful
Amarillo/amarillo-gitea/amarillo-core/pipeline/head This commit looks good
This commit is contained in:
parent
49459b8f70
commit
18c015a3b6
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
|
@ -54,7 +54,9 @@ pipeline {
|
||||||
echo 'Pushing image to registry'
|
echo 'Pushing image to registry'
|
||||||
script {
|
script {
|
||||||
docker.withRegistry(REGISTRY_URL, 'AMARILLO-JENKINS-GITEA-USER'){
|
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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue