From 0bf55a50eac60dd2ade0dd2a41efbedc1d9bf17f Mon Sep 17 00:00:00 2001 From: Andrew Pearce Date: Mon, 22 Jul 2024 10:45:17 +0100 Subject: [PATCH] only use one login --- .github/workflows/docker_job.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docker_job.yml b/.github/workflows/docker_job.yml index b504aac5e4..4e4a8ba935 100644 --- a/.github/workflows/docker_job.yml +++ b/.github/workflows/docker_job.yml @@ -115,20 +115,20 @@ jobs: with: sarif_file: 'trivy-results.sarif' - - uses: unfor19/install-aws-cli-action@v1 - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4.0.2 - with: - aws-region: eu-west-1 - role-to-assume: arn:aws:iam::311462405659:role/modernising-lpa-github-actions-ecr-push - role-duration-seconds: 900 - role-session-name: GithubActionsECRPushMLPAB - - name: ECR Login - id: login_ecr - uses: aws-actions/amazon-ecr-login@v2.0.1 - with: - mask-password: true - registries: 311462405659 + # - uses: unfor19/install-aws-cli-action@v1 + # - name: Configure AWS Credentials + # uses: aws-actions/configure-aws-credentials@v4.0.2 + # with: + # aws-region: eu-west-1 + # role-to-assume: arn:aws:iam::311462405659:role/modernising-lpa-github-actions-ecr-push + # role-duration-seconds: 900 + # role-session-name: GithubActionsECRPushMLPAB + # - name: ECR Login + # id: login_ecr_for_buildcache + # uses: aws-actions/amazon-ecr-login@v2.0.1 + # with: + # mask-password: true + # registries: 311462405659 - name: Push ${{ matrix.ecr_repository }} Image to ECR for PR if: ${{ github.workflow != 'Path To Live' }} uses: docker/build-push-action@v6.3.0