From 47daa53705b067dcd15ae2976e8f8bc807860a77 Mon Sep 17 00:00:00 2001 From: Nguyen Thai <39090621+tk-nguyen@users.noreply.github.com> Date: Fri, 15 Mar 2024 22:13:02 +0700 Subject: [PATCH] Use Github Actions for Docker build caches (#459) --- .github/workflows/publish.yml | 3 +++ .github/workflows/publish_feature.yml | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 779d8a0e..7c4c7dc0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -85,3 +85,6 @@ jobs: ${{ steps.meta.outputs.bake-file }} push: true targets: ${{ matrix.targets }} + set: | + _common.cache-to=type=gha,mode=max + _common.cache-from=type=gha diff --git a/.github/workflows/publish_feature.yml b/.github/workflows/publish_feature.yml index c76969be..205e4421 100644 --- a/.github/workflows/publish_feature.yml +++ b/.github/workflows/publish_feature.yml @@ -1,4 +1,4 @@ -name: Publish Feature Brunch +name: Publish Feature Branch on: push: @@ -55,7 +55,7 @@ jobs: uses: docker/metadata-action@v5 with: tags: | - ${{ github.head_ref || github.ref_name }} + ${{ github.head_ref || github.ref_name }} - name: Login to Docker Hub uses: docker/login-action@v3 @@ -79,3 +79,6 @@ jobs: ${{ steps.meta.outputs.bake-file }} push: true targets: ${{ matrix.targets }} + set: | + _common.cache-to=type=gha,mode=max + _common.cache-from=type=gha