Skip to content

Commit

Permalink
Merge pull request #14 from ministryofjustice/NIT-990-updater-ecr-repos
Browse files Browse the repository at this point in the history
NIT-990 Using updated action variables and secrets
  • Loading branch information
shazChaudhry authored Dec 6, 2023
2 parents e173d60 + beab116 commit 56302f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cloud-platform-build-push-share.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Configure aws credentials for ECR
uses: aws-actions/[email protected]
with:
role-to-assume: ${{ secrets.ECR_ROLE_TO_ASSUME }}
aws-region: ${{ vars.ECR_REGION }}
role-to-assume: ${{ secrets.SHARE_ECR_ROLE_TO_ASSUME }}
aws-region: ${{ vars.SHARE_ECR_REGION }}

- name: ECR login
uses: aws-actions/amazon-ecr-login@v2
Expand All @@ -37,5 +37,5 @@ jobs:
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: ${{ vars.ECR_REPOSITORY }}
REPOSITORY: ${{ vars.SHARE_ECR_REPOSITORY }}
IMAGE_TAG: ${{ github.sha }}

0 comments on commit 56302f6

Please sign in to comment.