Skip to content

Commit

Permalink
Update Porter CD deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Dec 2, 2024
1 parent ceb7f7f commit 100ec6a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/deploy-devops-porter-cd-pipeline-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,20 @@ jobs:
- us-west-2
steps:
- uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-west-2
role-to-assume: arn:aws:iam::561178107736:role/DevOps-GitHubOidcFederatedRole
role-session-name: GitHubActions-DeployPorterCdPipelineStack
aws-region: ${{ matrix.region }}
role-to-assume: arn:aws:iam::561178107736:role/PRX-GHA-AccessRole
role-session-name: gha-deploy-porter-cd

- name: Deploy CloudFormation stack
working-directory: devops
run: |
aws cloudformation deploy --region ${{ matrix.region }} --stack-name porter-cd-pipeline --template-file porter-cd-pipeline.yml --capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND --no-fail-on-empty-changeset
aws cloudformation deploy \
--region ${{ matrix.region }} \
--stack-name porter-cd-pipeline \
--template-file porter-cd-pipeline.yml \
--capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND \
--no-fail-on-empty-changeset

0 comments on commit 100ec6a

Please sign in to comment.