Skip to content

Commit

Permalink
Update CI/CD pipeline fixes for CDK and libs
Browse files Browse the repository at this point in the history
  • Loading branch information
san99tiago committed Feb 8, 2024
1 parent 514a242 commit 797b04a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install CDK
run: npm install -g aws-cdk
- name: Install CDK and Modules
run: |
npm install -g aws-cdk
npm ci
# Same task with different secrets depending on the branch ref (dev vs prod deployments)
# Note: there might be better alternatives, but this is a workaround to deploy to both envs
Expand All @@ -72,7 +74,7 @@ jobs:
role-to-assume: arn:aws:iam::${{ secrets.DEV_AWS_ACCOUNT_ID }}:role/${{ secrets.DEV_AWS_DEPLOY_ROLE }}
role-session-name: myGitHubActions
- name: Configure AWS Credentials (PROD)
if: github.ref != 'refs/heads/main'
if: github.ref == 'refs/heads/main'
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.AWS_DEFAULT_REGION }}
Expand Down Expand Up @@ -143,8 +145,10 @@ jobs:
with:
node-version: "20"

- name: Install CDK
run: npm install -g aws-cdk
- name: Install CDK and Modules
run: |
npm install -g aws-cdk
npm ci
# Same task with different secrets depending on the branch ref (dev vs prod deployments)
# Note: there might be better alternatives, but this is a workaround to deploy to both envs
Expand Down

0 comments on commit 797b04a

Please sign in to comment.