Skip to content

Commit 447cf12

Browse files
author
Jamie Curnow
committed
Fix master docker pushes, hopefully
1 parent bb0f4bf commit 447cf12

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Jenkinsfile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ pipeline {
1515
COMPOSE_INTERACTIVE_NO_CLI = 1
1616
BUILDX_NAME = "${COMPOSE_PROJECT_NAME}"
1717
BRANCH_LOWER = "${BRANCH_NAME.toLowerCase()}"
18-
19-
// Defaults to the Branch name, which is applies to all branches AND pr's
20-
BUILDX_PUSH_TAGS = "-t docker.io/jc21/${IMAGE}:github-${BRANCH_LOWER}"
2118
}
2219
stages {
2320
stage('Environment') {
@@ -32,6 +29,19 @@ pipeline {
3229
}
3330
}
3431
}
32+
stage('Other') {
33+
when {
34+
not {
35+
branch 'master'
36+
}
37+
}
38+
steps {
39+
script {
40+
// Defaults to the Branch name, which is applies to all branches AND pr's
41+
env.BUILDX_PUSH_TAGS = "-t docker.io/jc21/${IMAGE}:github-${BRANCH_LOWER}"
42+
}
43+
}
44+
}
3545
}
3646
}
3747
stage('Frontend') {

0 commit comments

Comments
 (0)