Skip to content

Commit

Permalink
Add deploy and remove-experimental actions (explicitly ignoring remov…
Browse files Browse the repository at this point in the history
…e.yml)
  • Loading branch information
cgodwin1 committed Nov 1, 2024
1 parent 37b2ba1 commit f327c51
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,19 @@ jobs:
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }}
aws-region: us-east-1
- name: deploy hello world CDK stack
env:
STAGE: ${{ matrix.environment }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
run: |
pushd cdk-eregs
npm install -g aws-cdk
npm install
cdk synth -c stage=${STAGE} -c account=${AWS_ACCOUNT_ID} -c region=${AWS_DEFAULT_REGION}
cdk deploy -c stage=${STAGE} -c account=${AWS_ACCOUNT_ID} -c region=${AWS_DEFAULT_REGION} \
${STAGE}-HelloWorldStack --require-approval never
popd
- name: deploy static assets
run: |
pushd solution/static-assets
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/remove-experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ jobs:
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }}
aws-region: us-east-1
- name: remove hello world cdk stack
env:
PR_NUMBER: ${{ github.event.number }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
run: |
pushd cdk-eregs
npm install -g aws-cdk
npm install
STAGE=dev${PR_NUMBER} cdk destroy -c stage=dev${PR_NUMBER} -c account=${AWS_ACCOUNT_ID} -c region=${AWS_DEFAULT_REGION} \
dev${PR_NUMBER}-HelloWorldStack --require-approval never
popd
# Remove parsers
- name: remove parsers
env:
Expand Down

0 comments on commit f327c51

Please sign in to comment.