Try registry buildcache

This commit is contained in:
Riordan Panayides 2022-08-04 16:08:48 +01:00
parent 8a8d8a456c
commit b364d04447
1 changed files with 2 additions and 6 deletions

View File

@ -30,12 +30,6 @@ jobs:
with:
install: true
# Cache docker layers
- uses: satackey/action-docker-layer-caching@v0.0.11
name: Cache Docker Layers
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
# Login to GCR
- name: Login to GCR
uses: docker/login-action@v2
@ -53,3 +47,5 @@ jobs:
tags: |
gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:${{ github.sha }}
gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:latest
cache-from: type=registry,ref=gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:buildcache
cache-to: type=registry,ref=gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE }}:buildcache,mode=max