File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,12 +11,6 @@ permissions:
1111 contents : read
1212
1313env :
14- AWS_REGION : eu-central-1
15- ECR_REPOSITORY : cognipeer-cgate
16-
17- ACR_LOGIN_SERVER : cognipeer.azurecr.io
18- ACR_REPOSITORY : cognipeer-cgate
19-
2014 HELM_VERSION : v3.15.2
2115 HELMFILE_VERSION : v0.162.0
2216
3024 - name : Configure AWS credentials (OIDC)
3125 uses : aws-actions/configure-aws-credentials@v4
3226 with :
33- role-to-assume : arn:aws:iam::339713139704:role/GitHubActionsECRPushRole
34- aws-region : ${{ env .AWS_REGION }}
27+ role-to-assume : ${{secrets.ROLE_PROVIDER}}
28+ aws-region : ${{ secrets .AWS_REGION }}
3529
3630 - name : Login to Amazon ECR
3731 id : ecr
4943 }
5044
5145 - name : " [Azure] Login to ACR"
52- run : az acr login --name ${{ env.ACR_LOGIN_SERVER }}
46+ run : az acr login --name ${{ secrets.LOGIN_SERVER }}
5347 - name : Set up Docker Buildx
5448 uses : docker/setup-buildx-action@v3
5549
7771 cache-from : type=gha
7872 cache-to : type=gha,mode=max
7973 tags : |
80- ${{ steps.ecr.outputs.registry }}/${{ env.ECR_REPOSITORY }}:${{ steps.vars.outputs.tag }}
81- ${{ env.ACR_LOGIN_SERVER }}/${{ env.ACR_REPOSITORY }}:${{ steps.vars.outputs.tag }}
74+ ${{ steps.ecr.outputs.registry }}/${{ secrets.LOCAL_FIRST_REPOSITORY }}:${{ steps.vars.outputs.tag }}
75+ ${{ env.LOGIN_SERVER }}/${{ secrets.LOCAL_SECOND_REPOSITORY }}:${{ steps.vars.outputs.tag }}
8276
8377 notify :
8478 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments