From f2498b49662ccfb7441445caff39ddb504f414f0 Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Tue, 7 Jan 2025 15:19:26 +0000 Subject: [PATCH] move auth back Signed-off-by: Austin Abro --- .github/workflows/nightly-ecr.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/nightly-ecr.yml b/.github/workflows/nightly-ecr.yml index f74b9bc0d1..f59f2488a3 100644 --- a/.github/workflows/nightly-ecr.yml +++ b/.github/workflows/nightly-ecr.yml @@ -28,10 +28,7 @@ jobs: role-to-assume: ${{ secrets.AWS_NIGHTLY_ECR_ROLE }} role-session-name: ${{ github.job || github.event.client_payload.pull_request.head.sha || github.sha }} aws-region: us-east-1 - role-duration-seconds: 1800 - - - name: Login to the ECR Registry - run: aws ecr-public get-login-password --region us-east-1 | ./build/zarf tools registry login --username AWS --password-stdin public.ecr.aws + role-duration-seconds: 3600 - name: Setup golang uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 @@ -41,17 +38,9 @@ jobs: - name: Build the Zarf binary run: make build-cli-linux-amd - # - name: Auth with AWS - # uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 - # with: - # role-to-assume: ${{ secrets.AWS_NIGHTLY_ECR_ROLE }} - # role-session-name: ${{ github.job || github.event.client_payload.pull_request.head.sha || github.sha }} - # aws-region: us-east-1 - # role-duration-seconds: 3600 - # NOTE: The aws cli will need to be explicitly installed on self-hosted runners - # - name: Login to the ECR Registry - # run: aws ecr-public get-login-password --region us-east-1 | ./build/zarf tools registry login --username AWS --password-stdin public.ecr.aws + - name: Login to the ECR Registry + run: aws ecr-public get-login-password --region us-east-1 | ./build/zarf tools registry login --username AWS --password-stdin public.ecr.aws - name: Test publishing and pulling to ECR run: go test ./src/test/nightly/ecr_publish_test.go