Skip to content

Commit d2ccd3f

Browse files
committed
👷 Push to new registry
1 parent 2809810 commit d2ccd3f

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

‎.github/workflows/docker.yml‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ on:
1111

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

2017
jobs:
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

0 commit comments

Comments
 (0)