Skip to content

Commit

Permalink
Move Gantry region config to plugin options (#374)
Browse files Browse the repository at this point in the history
The next version of the Gantry plugin will start requiring this option.
  • Loading branch information
72636c authored Mar 2, 2021
1 parent a343814 commit a80fed6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-papayas-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skuba': patch
---

**template/\*-rest-api:** Move Gantry region config to plugin options
3 changes: 3 additions & 0 deletions template/express-rest-api/.buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ steps:
- seek-jobs/gantry#v1.2.11:
command: build
file: gantry.build.yml
region: ap-southeast-2
values: .gantry/common.yml

- wait
Expand All @@ -57,6 +58,7 @@ steps:
command: apply
environment: <%- devGantryEnvironmentName %>
file: gantry.apply.yml
region: ap-southeast-2
values:
- .gantry/common.yml
- .gantry/dev.yml
Expand All @@ -73,6 +75,7 @@ steps:
command: apply
environment: <%- prodGantryEnvironmentName %>
file: gantry.apply.yml
region: ap-southeast-2
values:
- .gantry/common.yml
- .gantry/prod.yml
2 changes: 0 additions & 2 deletions template/express-rest-api/gantry.apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ name: '{{values "service"}}'

image: '{{values "image"}}'

region: ap-southeast-2

env:
# https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.html
AWS_NODEJS_CONNECTION_REUSE_ENABLED: '1'
Expand Down
3 changes: 3 additions & 0 deletions template/koa-rest-api/.buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ steps:
- seek-jobs/gantry#v1.2.11:
command: build
file: gantry.build.yml
region: ap-southeast-2
values: .gantry/common.yml

- wait
Expand All @@ -57,6 +58,7 @@ steps:
command: apply
environment: <%- devGantryEnvironmentName %>
file: gantry.apply.yml
region: ap-southeast-2
values:
- .gantry/common.yml
- .gantry/dev.yml
Expand All @@ -73,6 +75,7 @@ steps:
command: apply
environment: <%- prodGantryEnvironmentName %>
file: gantry.apply.yml
region: ap-southeast-2
values:
- .gantry/common.yml
- .gantry/prod.yml
2 changes: 0 additions & 2 deletions template/koa-rest-api/gantry.apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ name: '{{values "service"}}'

image: '{{values "image"}}'

region: ap-southeast-2

env:
# https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/node-reusing-connections.html
AWS_NODEJS_CONNECTION_REUSE_ENABLED: '1'
Expand Down

0 comments on commit a80fed6

Please sign in to comment.