Skip to content

Commit

Permalink
Update CI/CD pipeline fixes for CDK synth env-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
san99tiago committed Feb 8, 2024
1 parent 2b712db commit 369a21b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ jobs:

- run: aws sts get-caller-identity

- name: Setup Deployment Environment from Branch
run: |
# To update the deployment environment based on the git branch
if [[ $GITHUB_REF == 'refs/heads/main' ]]; then
echo "DEPLOYMENT_ENVIRONMENT=prod" >> "$GITHUB_ENV"
else
echo "DEPLOYMENT_ENVIRONMENT=dev" >> "$GITHUB_ENV"
fi
echo "Deployment environment is: $DEPLOYMENT_ENVIRONMENT"
- name: CDK Synth
run: |
cd ./cdk
Expand Down

0 comments on commit 369a21b

Please sign in to comment.