branch-specific image names
All checks were successful
Gitea/photolib/pipeline/head This commit looks good
All checks were successful
Gitea/photolib/pipeline/head This commit looks good
This commit is contained in:
parent
203d6f6b44
commit
560f4e8132
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -51,7 +51,8 @@ spec:
|
||||
container("docker") {
|
||||
script {
|
||||
docker.withRegistry('http://dockermirror:5000') {
|
||||
docker.image(image_name).push("latest")
|
||||
image_tag = env.BRANCH_NAME == "master" ? "latest" : env.BRANCH_NAME.replace("/", "--")
|
||||
docker.image(image_name).push(image_tag)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user