Use artifact repository

This commit is contained in:
Riordan Panayides 2022-08-04 17:05:52 +01:00
parent 74e8827e05
commit a7e58ea99d
1 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ jobs:
- name: Login to GCR - name: Login to GCR
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
registry: gcr.io registry: us-docker.pkg.dev
username: _json_key username: _json_key
password: ${{ secrets.GCR_SA_KEY }} password: ${{ secrets.GCR_SA_KEY }}
@ -46,7 +46,7 @@ jobs:
context: . context: .
push: true push: true
tags: | tags: |
gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:${{ github.sha }} us-docker.pkg.dev/gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:${{ github.sha }}
gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:latest us-docker.pkg.dev/gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:latest
cache-from: type=registry,ref=gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:buildcache cache-from: type=registry,ref=us-docker.pkg.dev/gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:buildcache
cache-to: type=registry,ref=gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:buildcache,mode=max cache-to: type=registry,ref=us-docker.pkg.dev/gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:buildcache,mode=max