From 01f6c0efdb44e7df5d8097a4effe5d8760e19854 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Mon, 30 Jan 2023 14:25:43 -0500 Subject: [PATCH] Use docker login (wip) --- .github/workflows/ci-pr.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index c0713225e0f..8e6803c6af2 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -24,6 +24,17 @@ jobs: with: path: smithy-rs fetch-depth: 0 + - name: Acquire credentials (optional) + continue-on-error: true + uses: aws-actions/configure-aws-credentials@v1-node16 + with: + role-to-assume: ${{ secrets.SMITHY_RS_PUBLIC_ECR_PUSH_ROLE_ARN }} + role-session-name: GitHubActions + aws-region: us-west-2 + - name: Login to ECR + continue-on-error: true + run: | + aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws - name: Acquire base image id: acquire env: