Skip to content

Commit 146aa27

Browse files
committed
feat: move cdk build into deploy action
1 parent d7f9e96 commit 146aa27

1 file changed

Lines changed: 5 additions & 19 deletions

File tree

skeleton/templates/bitbucket-pipelines.yml.mustache

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,16 @@ definitions:
3737
# Install dependencies
3838
- corepack enable
3939
- pnpm install
40-
- pnpm --dir=./cdk install
4140
# Deploy with CDK
42-
- pnpm --dir=./cdk cdk deploy --app dist/env-$BITBUCKET_DEPLOYMENT_ENVIRONMENT.js --require-approval never
41+
- cd cdk
42+
- pnpm install
43+
- pnpm build
44+
- pnpm cdk deploy --app dist/env-$BITBUCKET_DEPLOYMENT_ENVIRONMENT.js --require-approval never
4345

4446
pipelines:
4547
branches:
4648
main:
47-
- parallel:
48-
steps:
49-
- step: *check
50-
- step:
51-
name: Build CDK
52-
runs-on:
53-
- 'self.hosted'
54-
- 'linux'
55-
script:
56-
- corepack enable
57-
- cd cdk
58-
- pnpm install
59-
- pnpm build
60-
caches:
61-
- pnpm
62-
artifacts:
63-
- cdk/dist/**
49+
- step: *check
6450
- step:
6551
<<: *deploy
6652
name: Deploy Staging

0 commit comments

Comments
 (0)