Added environment variable for the name of the engage api key to the … #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: dev-branch-deployment | |
on: | |
push: | |
branches-ignore: | |
- main | |
- master | |
jobs: | |
dev-deploy-to-aws: | |
runs-on: ubuntu-latest | |
env: | |
CICD_ACCOUNT_ID: ${{ secrets.CICD_ACCOUNT_ID }} | |
SSM_PARAMETER_NAME_API: ${{ vars.SSM_PARAMETER_NAME_API }} | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
name: Set up python | |
with: | |
python-version: 3.11 | |
- name: Install python dependencies | |
run: pip install -r requirements.txt | |
- name: Configure AWS profile | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.STS_ASSUME_ROLE_ARN }} | |
role-session-name: github-actions-cfn-deploy | |
aws-region: ${{ vars.AWS_REGION }} | |
- uses: actions/setup-node@v4 | |
name: Install nodejs | |
with: | |
node-version: 20 | |
- name: Install CDK CLI with nodejs | |
run: | | |
npm install -g aws-cdk | |
- name: Build the CDK stack using the aws profile | |
run: | | |
cd immersion/environments/dev | |
chmod +X cdk-deploy-command.sh | |
./cdk-deploy-command.sh |