Skip to content

Commit

Permalink
Fix CDK Template Script (#1616)
Browse files Browse the repository at this point in the history
  • Loading branch information
samchungy authored Jul 22, 2024
1 parent 362a89e commit 3ff15f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .changeset/small-actors-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skuba': patch
---

template/lambda-sqs-worker-cdk: Fix deploy:hotswap script
20 changes: 1 addition & 19 deletions template/lambda-sqs-worker-cdk/.buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ steps:
skip-pull-from-cache: true

- wait

- block: 🙋🏻‍♀️ Deploy Dev
branches: '!${BUILDKITE_PIPELINE_DEFAULT_BRANCH}'

Expand All @@ -96,25 +97,6 @@ steps:
concurrency_group: '<%- repoName %>/deploy/dev'
key: deploy-dev

- block: 🙋🏻‍♀️ Deploy Dev (Hotswap)
key: deploy-dev-hotswap-block
branches: '!${BUILDKITE_PIPELINE_DEFAULT_BRANCH}'

- <<: *deploy
branches: '!${BUILDKITE_PIPELINE_DEFAULT_BRANCH}'
depends_on: deploy-dev-hotswap-block
agents:
queue: <%- devBuildkiteQueueName %>
env:
ENVIRONMENT: dev
commands:
- echo '--- pnpm install --offline'
- pnpm install --offline
- echo '+++ pnpm run deploy:hotswap'
- pnpm run deploy:hotswap
label: 🤞 Deploy Dev (Hotswap)
concurrency_group: '<%- repoName %>/deploy/dev'

- <<: *deploy
env:
ENVIRONMENT: prod
Expand Down
2 changes: 1 addition & 1 deletion template/lambda-sqs-worker-cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "UNLICENSED",
"scripts": {
"deploy": "cdk deploy appStack --require-approval never",
"deploy:hotswap": "pnpm --silent deploy --hotswap",
"deploy:hotswap": "pnpm --silent run deploy --hotswap",
"deploy:watch": "pnpm --silent deploy:hotswap --watch",
"format": "skuba format",
"lint": "skuba lint",
Expand Down

0 comments on commit 3ff15f6

Please sign in to comment.