Skip to content

Commit 6c6dab3

Browse files
authored
Merge pull request #10 from buildrun-tech/diario/dia-22
ci(day 22): adjust aws credentials at deploy.yml
2 parents a8f0f80 + a682730 commit 6c6dab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ jobs:
223223
- name: Configure AWS credentials
224224
uses: aws-actions/configure-aws-credentials@v4
225225
with:
226-
role-to-assume: ${{ needs.setup.outputs.aws-role-arn }}
226+
role-to-assume: ${{ env.ENVIRONMENT == 'prod' && secrets.AWS_ROLE_ARN_PROD || secrets.AWS_ROLE_ARN_DEV }}
227227
role-session-name: GitHubActions-DockerBuild
228228
aws-region: ${{ env.AWS_REGION }}
229229

0 commit comments

Comments
 (0)