Skip to content

Commit fdc2593

Browse files
committed
Added aws-actions authentication to linux_job_v2.yml.
1 parent 548a4bc commit fdc2593

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/linux_job_v2.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,19 @@ jobs:
186186
fetch-depth: ${{ inputs.fetch-depth }}
187187
submodules: ${{ inputs.submodules }}
188188

189+
- name: configure aws credentials
190+
id: aws_creds
191+
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
192+
with:
193+
role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_s3_and_ecr_read_only
194+
aws-region: us-east-1
195+
role-duration-seconds: 18000
196+
197+
- name: Login to Amazon ECR
198+
id: login-ecr
199+
continue-on-error: true
200+
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
201+
189202
- name: Calculate docker image
190203
id: calculate-docker-image
191204
uses: ./test-infra/.github/actions/calculate-docker-image

0 commit comments

Comments
 (0)