From 6fd987da7269b5a1f22cb8a3efa44dfe620daf7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20G=C3=A9r=C3=B4me?= Date: Tue, 12 Apr 2022 15:54:35 +0200 Subject: [PATCH] Github: Add gha caching to docker build action --- .github/workflows/build_docker_image.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_docker_image.yml b/.github/workflows/build_docker_image.yml index 9ac34e26..e578b0a0 100644 --- a/.github/workflows/build_docker_image.yml +++ b/.github/workflows/build_docker_image.yml @@ -42,8 +42,8 @@ jobs: tags: | blsq/openhexa-frontend:${{ steps.version.outputs.number }} blsq/openhexa-frontend:latest - cache-from: type=registry,ref=user/app:latest - cache-to: type=inline + cache-from: type=gha + cache-to: type=gha,mode=max build-args: | "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" "RELEASE=${{ steps.version.outputs.number }}" @@ -58,6 +58,8 @@ jobs: tags: | blsq/openhexa-frontend:${{ github.event.inputs.tag }} blsq/openhexa-frontend:latest + cache-from: type=gha + cache-to: type=gha,mode=max build-args: | "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" "RELEASE=${{ steps.version.outputs.number }}"