tag_latest
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -27,6 +27,11 @@ pipeline {
|
||||
sh """
|
||||
docker build -t ${env.FULL_IMAGE} .
|
||||
"""
|
||||
script {
|
||||
if (env.BRANCH_NAME == 'main') {
|
||||
sh "docker tag ${env.FULL_IMAGE} ${env.DOCKER_REGISTRY}/${env.DOCKER_IMAGE}:latest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user