From 2d40ba0f29498ab2e06649aeccc3786dc5bc5de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20G=C3=A9r=C3=B4me?= Date: Thu, 18 Apr 2024 16:22:18 +0200 Subject: [PATCH] fix(CI): Use the registry to cache the layers --- .github/workflows/build_docker_image.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_docker_image.yml b/.github/workflows/build_docker_image.yml index 51000c43f..94636f4c5 100644 --- a/.github/workflows/build_docker_image.yml +++ b/.github/workflows/build_docker_image.yml @@ -91,8 +91,8 @@ jobs: context: . target: app file: Dockerfile - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=registry,ref=blsq/openhexa-app:buildcache + cache-to: type=registry,ref=blsq/openhexa-app:buildcache,mode=max tags: | blsq/openhexa-app:${{ steps.version.outputs.number }} blsq/openhexa-app:latest @@ -106,8 +106,8 @@ jobs: context: . target: app file: Dockerfile - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=registry,ref=blsq/openhexa-app:buildcache + cache-to: type=registry,ref=blsq/openhexa-app:buildcache,mode=max tags: | blsq/openhexa-app:${{ github.event.inputs.tag }} blsq/openhexa-app:latest