Skip to content

Commit

Permalink
enable prod auto deploy - diff looks good
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeddf committed Mar 20, 2021
1 parent 7b8818f commit 4985997
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/production_deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: AWS Infra Production Deploy

on:
workflow_dispatch:
# push:
# branches: [main]
# paths:
# - "infrastructure/**"
push:
branches: [main]
paths:
- "infrastructure/**"

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ deploy: build deploy-cdk post-deploy-cdk
diff: build diff-cdk

deploy-cdk:
cd cdk; AWS_ACCOUNT_ID=${AWS_ACCOUNT_ID} AWS_REGION=${AWS_REGION} HOSTED_ZONE_NAME=${HOSTED_ZONE_NAME} HOSTED_ZONE_ID=${HOSTED_ZONE_ID} HASURA_HOSTNAME=${HASURA_HOSTNAME} ACTIONS_HOSTNAME=${ACTIONS_HOSTNAME} APP_NAME=${APP_NAME} npx cdk deploy '*' --profile ${AWS_PROFILE} --outputs-file cdk.outputs.json
cd cdk; MULTI_AZ=${MULTI_AZ} AWS_ACCOUNT_ID=${AWS_ACCOUNT_ID} AWS_REGION=${AWS_REGION} HOSTED_ZONE_NAME=${HOSTED_ZONE_NAME} HOSTED_ZONE_ID=${HOSTED_ZONE_ID} HASURA_HOSTNAME=${HASURA_HOSTNAME} ACTIONS_HOSTNAME=${ACTIONS_HOSTNAME} APP_NAME=${APP_NAME} npx cdk deploy '*' --profile ${AWS_PROFILE} --outputs-file cdk.outputs.json

diff-cdk:
cd cdk; AWS_ACCOUNT_ID=${AWS_ACCOUNT_ID} AWS_REGION=${AWS_REGION} HOSTED_ZONE_NAME=${HOSTED_ZONE_NAME} HOSTED_ZONE_ID=${HOSTED_ZONE_ID} HASURA_HOSTNAME=${HASURA_HOSTNAME} ACTIONS_HOSTNAME=${ACTIONS_HOSTNAME} APP_NAME=${APP_NAME} npx cdk diff '*' --profile ${AWS_PROFILE} --outputs-file cdk.outputs.json
Expand Down

1 comment on commit 4985997

@vercel
Copy link

@vercel vercel bot commented on 4985997 Mar 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.