From 56cb6e78c849b80dbec53ba1202e0bb221eaae79 Mon Sep 17 00:00:00 2001
From: CrazyMax <crazy-max@users.noreply.github.com>
Date: Tue, 17 Oct 2023 00:22:39 +0200
Subject: [PATCH] chore: temporarily disable riscv64 build

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit 39086bee24265a92a4329c1f673ac9379532c872)
---
 .github/workflows/buildkit.yml | 2 +-
 .github/workflows/frontend.yml | 2 +-
 docker-bake.hcl                | 3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/buildkit.yml b/.github/workflows/buildkit.yml
index 3c2cb53f9ada..36c2287d0739 100644
--- a/.github/workflows/buildkit.yml
+++ b/.github/workflows/buildkit.yml
@@ -25,7 +25,7 @@ env:
   SETUP_BUILDX_VERSION: "latest"
   SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest"
   IMAGE_NAME: "moby/buildkit"
-  PLATFORMS: "linux/amd64,linux/arm/v7,linux/arm64,linux/s390x,linux/ppc64le,linux/riscv64"
+  PLATFORMS: "linux/amd64,linux/arm/v7,linux/arm64,linux/s390x,linux/ppc64le"
   DESTDIR: "./bin"
 
 jobs:
diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml
index 5eace41ef6dc..26846b176309 100644
--- a/.github/workflows/frontend.yml
+++ b/.github/workflows/frontend.yml
@@ -23,7 +23,7 @@ env:
   SETUP_BUILDX_VERSION: "latest"
   SETUP_BUILDKIT_TAG: "moby/buildkit:latest"
   IMAGE_NAME: "docker/dockerfile-upstream"
-  PLATFORMS: "linux/386,linux/amd64,linux/arm/v7,linux/arm64,linux/mips,linux/mipsle,linux/mips64,linux/mips64le,linux/s390x,linux/ppc64le,linux/riscv64"
+  PLATFORMS: "linux/386,linux/amd64,linux/arm/v7,linux/arm64,linux/mips,linux/mipsle,linux/mips64,linux/mips64le,linux/s390x,linux/ppc64le"
 
 jobs:
   test:
diff --git a/docker-bake.hcl b/docker-bake.hcl
index f6fc3bba8289..339e14bb7da5 100644
--- a/docker-bake.hcl
+++ b/docker-bake.hcl
@@ -56,7 +56,8 @@ target "binaries-cross" {
     "linux/arm64",
     "linux/s390x",
     "linux/ppc64le",
-    "linux/riscv64",
+    # TODO: enable back once https://github.com/moby/buildkit/issues/4316 is fixed
+    // "linux/riscv64",
     "windows/amd64",
     "windows/arm64"
   ]