From f4d92be09c5a2d7fde5b1a691a42e4b485b3e88c Mon Sep 17 00:00:00 2001
From: Phillip Wirth <phillip.wirth@dataport.de>
Date: Mon, 20 Jan 2025 16:17:25 +0100
Subject: [PATCH] BC-8763 workaround for actions/build-push-action@v6

as it appears to be incompatible with actions/download-artifact@v4 /https://github.com/cloudposse/github-action-matrix-outputs-read/issues/29#issuecomment-2178913317
see https://github.com/docker/build-push-action/issues/1167

in short if one downloads an artifact that is not of type zip it might/will fail to download so most of the times this https://github.com/actions/toolkit/pull/1874 might resolve the whole mess
---
 .github/workflows/push.yml | 2 ++
 .github/workflows/tag.yml  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index be5721d..13d583d 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -41,6 +41,8 @@ jobs:
       - name: Build and push ${{ github.repository }}
         if: ${{ env.IMAGE_EXISTS == 0 }}
         uses: docker/build-push-action@v6
+        env:
+          DOCKER_BUILD_RECORD_UPLOAD: false
         with:
           context: .
           file: ./Dockerfile
diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml
index 9de790a..8e9d930 100644
--- a/.github/workflows/tag.yml
+++ b/.github/workflows/tag.yml
@@ -39,6 +39,8 @@ jobs:
 
       - name: Build and push ${{ github.repository }}
         uses: docker/build-push-action@v6
+        env:
+          DOCKER_BUILD_RECORD_UPLOAD: false
         with:
           context: .
           file: ./Dockerfile