Skip to content

Commit

Permalink
Update environment
Browse files Browse the repository at this point in the history
  • Loading branch information
zacdezgeo committed Oct 11, 2024
1 parent 7f52fe0 commit 5e7a1a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:

jobs:
build:
environment: "Space2Stats API Dev"
runs-on: ubuntu-latest

steps:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:

jobs:
build:
environment: "Space2Stats API Prod"
runs-on: ubuntu-latest

steps:
Expand All @@ -24,10 +25,10 @@ jobs:
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::017820688988:role/Space2Stats-Deploy-Role
aws-region: ${{ env.CDK_DEFAULT_REGION }}
aws-region: ${{ vars.CDK_DEFAULT_REGION }}

- name: Bootstrap CDK (if not done yet)
run: cdk bootstrap aws://${{ env.CDK_DEFAULT_ACCOUNT }}/${{ env.CDK_DEFAULT_REGION }}
run: cdk bootstrap aws://${{ vars.CDK_DEFAULT_ACCOUNT }}/${{ vars.CDK_DEFAULT_REGION }}

- name: Deploy CDK stack
env:
Expand Down

0 comments on commit 5e7a1a7

Please sign in to comment.