From 024b959a1169e99004d81da0809ed3debdd44738 Mon Sep 17 00:00:00 2001 From: Jawad Tariq Date: Wed, 27 Mar 2024 15:13:21 -0400 Subject: [PATCH] fix: contracts docker build workflow cache tags Signed-off-by: Jawad Tariq --- .github/workflows/contract-docker-utils.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/contract-docker-utils.yml b/.github/workflows/contract-docker-utils.yml index 9b57e27ac..2e967cf59 100644 --- a/.github/workflows/contract-docker-utils.yml +++ b/.github/workflows/contract-docker-utils.yml @@ -10,7 +10,8 @@ on: env: REGISTRY: ghcr.io IMAGE_NAME: topos-smart-conracts - WORKFLOW: ${{ github.workflow }} + WORKFLOW: contracts_docker_build_push + jobs: docker: @@ -57,6 +58,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: | - type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}:build-cache-${{ env.GITHUB_REF_SLUG_URL }}-${{ github.workflow }} - type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}:build-cache-main-${{ github.workflow }} - cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}:build-cache-${{ env.GITHUB_REF_SLUG_URL }}-${{ github.workflow }},mode=max + type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}:build-cache-${{ env.GITHUB_REF_SLUG_URL }}-${{ env.WORKFLOW }} + type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}:build-cache-main-${{ env.WORKFLOW }} + cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}:build-cache-${{ env.GITHUB_REF_SLUG_URL }}-${{ env.WORKFLOW }},mode=max