From 7fe190cf430f84f62fe41c8ffe1590d4f800f5fb Mon Sep 17 00:00:00 2001 From: romer8 Date: Mon, 6 May 2024 13:00:15 -0600 Subject: [PATCH] fixed cache portion --- .github/workflows/build_and_push_dev_image.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_push_dev_image.yml b/.github/workflows/build_and_push_dev_image.yml index 3a1461a..5f6df9c 100644 --- a/.github/workflows/build_and_push_dev_image.yml +++ b/.github/workflows/build_and_push_dev_image.yml @@ -22,7 +22,7 @@ jobs: echo "TAG_LATEST=dev_latest" >> $GITHUB_ENV - name: Set matrix for build id: set-matrix - run: echo "::set-output name=matrix::{\"include\":[{\"platform\":\"linux/amd64\",\"tag\":\"${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}:${{ env.TAG_LATEST }}_amd64\"},{\"platform\":\"linux/arm64\",\"tag\":\"${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}:${{ env.TAG_LATEST }}_arm64\"}]}" + run: echo "::set-output name=matrix::{\"include\":[{\"platform\":\"linux/amd64\",\"tag\":\"${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}:dev_latest-amd64\"},{\"platform\":\"linux/arm64\",\"tag\":\"${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}:dev_latest-arm64\"}]}" # build image build: needs: setup @@ -62,8 +62,8 @@ jobs: push: true tags: ${{ matrix.tag }} platforms: ${{ matrix.platform }} - cache-from: type=registry,ref=${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}-dev-${{ matrix.platform }}-cache:latest - cache-to: type=registry,ref=${{ env.DOCKER_HUB_ORG }}/${{ env.DOCKER_REPO }}-dev-${{ matrix.platform }}-cache:latest,mode=max + cache-from: type=registry,ref=${{ matrix.tag }}-cache:latest + cache-to: type=registry,ref=${{ matrix.tag }}-cache:latest,mode=max cleanup: needs: [build]