Skip to content

Commit

Permalink
fixed alias
Browse files Browse the repository at this point in the history
  • Loading branch information
aweiland committed May 16, 2024
1 parent 8464b54 commit 540ccc6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ jobs:
curl -Lo copilot https://github.com/aws/copilot-cli/releases/latest/download/copilot-linux && chmod +x copilot &&
sudo mv copilot /usr/local/bin/copilot && copilot -v
- name: Create secrets for environment
# Each env needs a secret. This is a copilot limitation. So the baseline secret
# is copied and tagged properly for copilot to pick it up.
run: |
SECRET_STRING=$(aws secretsmanager get-secret-value --secret-id cmiml-feature)
aws secretsmanager create-secret --name cmiml-feature-${{ env.ENV_NAME }} --secret-string '$SECRET_STRING' --kms-key-id aws/secretsmanager --tags "Key=copilot-application,Value=${{ env.APP_NAME }}" "Key=copilot-environment,Value=${{ env.ENV_NAME }}"
SECRET_STRING=$(aws secretsmanager get-secret-value --secret-id cmiml-feature-feature)
aws secretsmanager create-secret --name cmiml-feature-${{ env.ENV_NAME }} --secret-string '$SECRET_STRING' --kms-key-id alias/aws/secretsmanager --tags "Key=copilot-application,Value=${{ env.APP_NAME }}" "Key=copilot-environment,Value=${{ env.ENV_NAME }}"
- uses: actions/checkout@v4
name: Checkout
Expand Down Expand Up @@ -143,6 +145,12 @@ jobs:
message: |
:x: Integration tests failed
comment_tag: taf-results
- name: Fail
if: steps.taf-tests.outcome != 'success' && github.event_name == 'pull_request'
uses: actions/github-script@v3
with:
script: |
core.setFailed('Unit tests failed')
- name: Collect artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 540ccc6

Please sign in to comment.