Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Nov 22, 2024
1 parent 30258a6 commit 4b76473
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/assume-aws-role.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
inputs:
CRT_CI_ROLE:
required: true
AWS_DEFAULT_REGION:
required: true

name: 'Assume Role'
description: 'Assume AWS Role to be used during workflows'
runs:
using: "composite"
permissions:
id-token: write # This is required for requesting the JWT
steps:
- name: configure AWS credentials (containers)
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.CRT_CI_ROLE }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,8 @@ jobs:
- opensuse-leap
- rhel8-x64
- al2-x64
permissions:
id-token: write # This is required for requesting the JWT
steps:
- name: configure AWS credentials (containers)
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.CRT_CI_ROLE }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- uses: ./.github/actions/assume-aws-role.yml
- name: Build ${{ env.PACKAGE_NAME }}
run: |
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
Expand Down

0 comments on commit 4b76473

Please sign in to comment.