Skip to content

Commit 42e32d3

Browse files
committed
Login to Artifact Registry when deploying docker image
1 parent 3ff9535 commit 42e32d3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ jobs:
6666
uses: 'google-github-actions/auth@v2'
6767
with:
6868
credentials_json: '${{ secrets.ARTIFACT_REGISTRY_UPLOADER }}'
69+
- name: Login to Artifact Registry
70+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # aka v3.5.0
71+
with:
72+
registry: us-docker.pkg.dev
73+
username: _json_key
74+
password: '${{ secrets.ARTIFACT_REGISTRY_UPLOADER }}'
6975
- name: Deploy docker image
7076
uses: ./.github/actions/deploy-cuttlefish-cloud-orchestrator-docker-image
7177
with:
@@ -84,6 +90,12 @@ jobs:
8490
uses: 'google-github-actions/auth@v2'
8591
with:
8692
credentials_json: '${{ secrets.ARTIFACT_REGISTRY_UPLOADER }}'
93+
- name: Login to Artifact Registry
94+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # aka v3.5.0
95+
with:
96+
registry: us-docker.pkg.dev
97+
username: _json_key
98+
password: '${{ secrets.ARTIFACT_REGISTRY_UPLOADER }}'
8799
- name: Deploy docker image
88100
uses: ./.github/actions/deploy-cuttlefish-cloud-orchestrator-docker-image
89101
with:

0 commit comments

Comments
 (0)