File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 1111
1212env :
1313 IMAGE_NAME : " wallet"
14- PROJECT_ID : " hyle-413414"
15- AR_REPO_LOCATION : " europe-west3"
16- AR_URL : " europe-west3-docker.pkg.dev/hyle-413414/hyle-docker"
17- SERVICE_ACCOUNT : " github-actions-service-account@hyle-413414.iam.gserviceaccount.com"
18- WORKLOAD_IDENTITY_PROVIDER : " "
14+ AR_REPO_LOCATION : " europe-west1-docker.pkg.dev"
15+ AR_URL : " hyli-shared-all/apps"
1916
2017jobs :
2118 build_and_push :
@@ -50,13 +47,15 @@ jobs:
5047 type=ref,event=branch
5148 type=ref,event=pr
5249 type=raw,value=latest,enable={{is_default_branch}}
53- - name : Docker Auth (Google Artifact Registry)
54- id : docker-auth
55- uses : " docker/login-action@v3"
50+
51+ - uses : google-github-actions/auth@v2
5652 with :
57- username : _json_key
58- password : ${{ secrets.GOOGLE_CREDENTIALS }}
59- registry : " ${{ env.AR_REPO_LOCATION }}-docker.pkg.dev"
53+ workload_identity_provider : " projects/493106494045/locations/global/workloadIdentityPools/hyli-all-pool/providers/hyli-github-provider"
54+ service_account :
" [email protected] " 55+
56+ - name : " Authenticate docker on gcp"
57+ run : |
58+ gcloud auth configure-docker ${{ env.AR_REPO_LOCATION }}
6059
6160 - name : Login to GitHub Container Registry
6261 uses : docker/login-action@v3
You can’t perform that action at this time.
0 commit comments