branch-specific image names
Gitea/photolib/pipeline/head This commit looks good
Details
Gitea/photolib/pipeline/head This commit looks good
Details
This commit is contained in:
parent
203d6f6b44
commit
560f4e8132
|
@ -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