From 44f5ecb0486df2000b24d9e197ac97ca27cc3911 Mon Sep 17 00:00:00 2001 From: lotyp Date: Mon, 8 May 2023 14:54:29 +0300 Subject: [PATCH 1/3] fix: registry cache importer requires ref --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2369fbd..a469a34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,8 +85,8 @@ jobs: context: ./dist/dev/${{ env.TEMPLATE }} load: true tags: ${{ steps.meta.outputs.tags }} - cache-from: type=registry,ref=${{ env.IMAGE_TAG }} - cache-to: type=inline + # cache-from: type=registry,ref=${{ env.IMAGE_TAG }} + # cache-to: type=inline labels: ${{ steps.meta.outputs.labels }} - name: Test Docker Release Image From 51cd99c0f3225088ba180a5c140302968639902c Mon Sep 17 00:00:00 2001 From: lotyp Date: Mon, 8 May 2023 14:56:56 +0300 Subject: [PATCH 2/3] fix: registry cache importer requires ref --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a469a34..1163f97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,7 +107,7 @@ jobs: platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} - cache-from: type=registry,ref=${{ env.IMAGE_TAG }} - cache-to: type=inline + # cache-from: type=registry,ref=${{ env.IMAGE_TAG }} + # cache-to: type=inline ... From 9b554abec27032abca7718f7952a05b386ccd075 Mon Sep 17 00:00:00 2001 From: lotyp Date: Mon, 8 May 2023 15:05:13 +0300 Subject: [PATCH 3/3] fix: remove job name --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1163f97..cc175d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,6 @@ on: # yamllint disable-line rule:truthy jobs: build: - name: Build runs-on: ubuntu-latest strategy: fail-fast: false @@ -93,11 +92,13 @@ jobs: if: success() && startsWith(github.ref, 'refs/tags/') run: | IMAGE_TAG=${{ env.IMAGE_NAMESPACE }}:${{ env.TEMPLATE }}-${{ env.VERSION }} make test + echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV - name: Test Docker Master Image if: success() && ! startsWith(github.ref, 'refs/tags/') run: | IMAGE_TAG=${{ env.IMAGE_NAMESPACE }}:${{ env.TEMPLATE }}-latest make test + echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV - name: Push Docker Image uses: docker/build-push-action@v3