From cda380f4afc10ff8f764a4b1acadddd5c7b598d5 Mon Sep 17 00:00:00 2001 From: sumitd2 <91451282+sumitd2@users.noreply.github.com> Date: Thu, 14 Sep 2023 06:59:31 +0530 Subject: [PATCH 1/4] Correct arch string for ppc64le --- docker/build_operator.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/build_operator.sh b/docker/build_operator.sh index 337389e4d..d0d8e4c71 100644 --- a/docker/build_operator.sh +++ b/docker/build_operator.sh @@ -3,6 +3,9 @@ export DEBIAN_FRONTEND=noninteractive arch=$(dpkg --print-architecture) +if [ "$arch" = "ppc64el" ]; then + arch" = "ppc64le" +fi set -ex From 4d314a8498ecaeb5bb29abb54a037b8ec4d007a6 Mon Sep 17 00:00:00 2001 From: sumitd2 <91451282+sumitd2@users.noreply.github.com> Date: Thu, 14 Sep 2023 07:00:27 +0530 Subject: [PATCH 2/4] Add ppc64le to mutiarch build --- .github/workflows/publish_ghcr_image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_ghcr_image.yaml b/.github/workflows/publish_ghcr_image.yaml index b81298e6a..0608c0d61 100644 --- a/.github/workflows/publish_ghcr_image.yaml +++ b/.github/workflows/publish_ghcr_image.yaml @@ -53,4 +53,4 @@ jobs: push: true build-args: BASE_IMAGE=alpine:3.15 tags: "${{ steps.image.outputs.NAME }}" - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64,linux/ppc64le From 05803075303479083411c02045ef64bb15b60509 Mon Sep 17 00:00:00 2001 From: sumitd2 <91451282+sumitd2@users.noreply.github.com> Date: Thu, 14 Sep 2023 07:07:30 +0530 Subject: [PATCH 3/4] Update build_operator.sh - Fix typo --- docker/build_operator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/build_operator.sh b/docker/build_operator.sh index d0d8e4c71..fe3aea3c6 100644 --- a/docker/build_operator.sh +++ b/docker/build_operator.sh @@ -4,7 +4,7 @@ export DEBIAN_FRONTEND=noninteractive arch=$(dpkg --print-architecture) if [ "$arch" = "ppc64el" ]; then - arch" = "ppc64le" + arch = "ppc64le" fi set -ex From dae25833ba9920dd46cc4306d128108fe9dc62f5 Mon Sep 17 00:00:00 2001 From: sumitd2 <91451282+sumitd2@users.noreply.github.com> Date: Thu, 14 Sep 2023 07:13:47 +0530 Subject: [PATCH 4/4] Update build_operator.sh - Fix variable assignment --- docker/build_operator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/build_operator.sh b/docker/build_operator.sh index fe3aea3c6..9744545be 100644 --- a/docker/build_operator.sh +++ b/docker/build_operator.sh @@ -4,7 +4,7 @@ export DEBIAN_FRONTEND=noninteractive arch=$(dpkg --print-architecture) if [ "$arch" = "ppc64el" ]; then - arch = "ppc64le" + arch="ppc64le" fi set -ex