branch-specific image names
All checks were successful
Gitea/photolib/pipeline/head This commit looks good

This commit is contained in:
dave 2023-01-19 23:18:03 -08:00
parent 203d6f6b44
commit 560f4e8132

3
Jenkinsfile vendored
View File

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