Skip to content

Commit

Permalink
[Akshay/Naveen] #225147 Update CircleCI config to use appropriate cre…
Browse files Browse the repository at this point in the history
…dentials for PROD deployment
  • Loading branch information
aksatpute committed Jun 1, 2023
1 parent 519f6e4 commit b88d772
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .circleci/deployment-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,21 @@ commands:
default: ''
mode:
type: string
default: ''
default: dev
steps:
- run:
name: Build code
command: API_KEY=<< parameters.api_key >> CLIENT_ID=<< parameters.client_id >> GTM_ID=<< parameters.gtm_id >> ADOBE_LAUNCH_SCRIPT_URL=<< parameters.adobe_launch_script_url >> npm run build:<< parameters.mode >>
- when:
condition:
and:
- equal: [<< parameters.mode >>, 'prod']
steps:
- run:
name: Set PROD specific env variables
command: |
echo 'export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID_PROD' >> $BASH_ENV
echo 'export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY_PROD' >> $BASH_ENV
- aws-cli/setup
- run:
name: Sync build artifacts to S3
Expand Down

0 comments on commit b88d772

Please sign in to comment.