Skip to content

Commit 4cd8108

Browse files
WoodProgrammerEmir Özbir
andauthored
main: Fix repo details (#79)
Co-authored-by: Emir Özbir <emirozbir@invalid-1e3zykv9.hs-net.private>
1 parent 9726fbe commit 4cd8108

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/build-deploy.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ permissions:
1111
contents: read
1212

1313
env:
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

@@ -30,8 +24,8 @@ jobs:
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
@@ -49,7 +43,7 @@ jobs:
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

@@ -77,8 +71,8 @@ jobs:
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

0 commit comments

Comments
 (0)