Skip to content

Commit ec9a44a

Browse files
authored
Use BUILDKITE_PIPELINE_DEFAULT_BRANCH (#475)
This makes it easier to support a `main` default branch in future.
1 parent e9a71d4 commit ec9a44a

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

.changeset/small-masks-vanish.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'skuba': patch
3+
---
4+
5+
**template:** Use BUILDKITE_PIPELINE_DEFAULT_BRANCH in `pipeline.yml`

template/express-rest-api/.buildkite/pipeline.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ steps:
7575

7676
- wait
7777
- block: 🙋🏻‍♀️ Deploy Dev
78-
branches: '!master'
78+
branches: '!${BUILDKITE_PIPELINE_DEFAULT_BRANCH}'
7979

8080
- <<: *dev
8181
<<: *deploy
@@ -95,7 +95,7 @@ steps:
9595
- <<: *prod
9696
<<: *deploy
9797
label: 🚀 Deploy Prod
98-
branches: master
98+
branches: ${BUILDKITE_PIPELINE_DEFAULT_BRANCH}
9999
concurrency_group: <%- teamName %>/deploy/gantry/<%- prodGantryEnvironmentName %>
100100
depends_on: deploy-dev
101101
plugins:

template/koa-rest-api/.buildkite/pipeline.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ steps:
7575

7676
- wait
7777
- block: 🙋🏻‍♀️ Deploy Dev
78-
branches: '!master'
78+
branches: '!${BUILDKITE_PIPELINE_DEFAULT_BRANCH}'
7979

8080
- <<: *dev
8181
<<: *deploy
@@ -95,7 +95,7 @@ steps:
9595
- <<: *prod
9696
<<: *deploy
9797
label: 🚀 Deploy Prod
98-
branches: master
98+
branches: ${BUILDKITE_PIPELINE_DEFAULT_BRANCH}
9999
concurrency_group: <%- teamName %>/deploy/gantry/<%- prodGantryEnvironmentName %>
100100
depends_on: deploy-dev
101101
plugins:

template/lambda-sqs-worker-cdk/.buildkite/pipeline.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ steps:
5656

5757
- wait
5858
- block: 🙋🏻‍♀️ Deploy Dev
59-
branches: '!master'
59+
branches: '!${BUILDKITE_PIPELINE_DEFAULT_BRANCH}'
6060

6161
- <<: *dev
6262
<<: *deploy
@@ -72,7 +72,7 @@ steps:
7272
- <<: *prod
7373
<<: *deploy
7474
label: 🚀 Deploy Prod
75-
branches: master
75+
branches: ${BUILDKITE_PIPELINE_DEFAULT_BRANCH}
7676
commands:
7777
- echo '--- yarn build'
7878
- yarn build

template/lambda-sqs-worker/.buildkite/pipeline.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ steps:
6161

6262
- wait
6363
- block: 🙋🏻‍♀️ Deploy Dev
64-
branches: '!master'
64+
branches: '!${BUILDKITE_PIPELINE_DEFAULT_BRANCH}'
6565

6666
- <<: *dev
6767
<<: *deploy
@@ -73,7 +73,7 @@ steps:
7373

7474
- <<: *prod
7575
<<: *deploy
76-
branches: master
76+
branches: ${BUILDKITE_PIPELINE_DEFAULT_BRANCH}
7777
command: yarn deploy
7878
concurrency_group: <%- repoName %>/deploy/prod
7979
label: 🚀 Deploy Prod

0 commit comments

Comments
 (0)