Skip to content

Commit

Permalink
only use one login
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpearce-digital committed Jul 22, 2024
1 parent 1e3bf0d commit 0bf55a5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/docker_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
with:
mask-password: true
registries: 311462405659
# - uses: unfor19/install-aws-cli-action@v1
# - name: Configure AWS Credentials
# uses: aws-actions/[email protected]
# 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/[email protected]
# with:
# mask-password: true
# registries: 311462405659
- name: Push ${{ matrix.ecr_repository }} Image to ECR for PR
if: ${{ github.workflow != 'Path To Live' }}
uses: docker/[email protected]
Expand Down

0 comments on commit 0bf55a5

Please sign in to comment.