Skip to content

Commit d499e2b

Browse files
committed
Push PR and github branch builds to separate docker image
1 parent 2f9e062 commit d499e2b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Jenkinsfile

+8-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pipeline {
4343
steps {
4444
script {
4545
// Defaults to the Branch name, which is applies to all branches AND pr's
46-
buildxPushTags = "-t docker.io/jc21/${IMAGE}:github-${BRANCH_LOWER}"
46+
buildxPushTags = "-t docker.io/nginxproxymanager/${IMAGE}-dev:${BRANCH_LOWER}"
4747
}
4848
}
4949
}
@@ -203,7 +203,13 @@ pipeline {
203203
}
204204
steps {
205205
script {
206-
npmGithubPrComment("Docker Image for build ${BUILD_NUMBER} is available on [DockerHub](https://cloud.docker.com/repository/docker/jc21/${IMAGE}) as `jc21/${IMAGE}:github-${BRANCH_LOWER}`\n\n**Note:** ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.", true)
206+
npmGithubPrComment("""Docker Image for build ${BUILD_NUMBER} is available on
207+
[DockerHub](https://cloud.docker.com/repository/docker/nginxproxymanager/${IMAGE}-dev)
208+
as `nginxproxymanager/${IMAGE}-dev:${BRANCH_LOWER}`
209+
210+
**Note:** ensure you backup your NPM instance before testing this image! Especially if there are database changes
211+
**Note:** this is a different docker image namespace than the official image
212+
""", true)
207213
}
208214
}
209215
}

0 commit comments

Comments
 (0)