From ef863b095ca7d7ea89d806332e3b52a522c37272 Mon Sep 17 00:00:00 2001 From: Yan Song Liu Date: Wed, 8 Nov 2023 22:22:09 +0800 Subject: [PATCH] Add pack cli support for IBM s390x Signed-off-by: Yan Song Liu --- .github/workflows/build.yml | 15 +++++++++++++++ .github/workflows/delivery-docker.yml | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d9634c277f..5185d34088 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -173,6 +173,9 @@ jobs: - name: macos-arm64 goarch: arm64 goos: darwin + - name: linux-s390x + goarch: s390x + goos: linux needs: test runs-on: ubuntu-latest steps: @@ -230,6 +233,12 @@ jobs: filename=pack-v${{ env.PACK_VERSION }}-linux-arm64.tgz tar -C pack-linux-arm64 -vzcf $filename pack shasum -a 256 $filename > $filename.sha256 + - name: Package artifacts - linux-s390x + run: | + chmod +x pack-linux-s390x/pack + filename=pack-v${{ env.PACK_VERSION }}-linux-s390x.tgz + tar -C pack-linux-s390x -vzcf $filename pack + shasum -a 256 $filename > $filename.sha256 - name: Package artifacts - macos-arm64 run: | chmod +x pack-macos-arm64/pack @@ -300,6 +309,12 @@ jobs: (curl -sSL "https://github.com/buildpacks/pack/releases/download/v${{ env.PACK_VERSION }}/pack-v${{ env.PACK_VERSION }}-linux-arm64.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack) ``` + ##### S390X + + ```bash + (curl -sSL "https://github.com/buildpacks/pack/releases/download/v${{ env.PACK_VERSION }}/pack-v${{ env.PACK_VERSION }}-linux-s390x.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack) + ``` + #### MacOS ##### Intel diff --git a/.github/workflows/delivery-docker.yml b/.github/workflows/delivery-docker.yml index 9c4232732b..3a9f67eb42 100644 --- a/.github/workflows/delivery-docker.yml +++ b/.github/workflows/delivery-docker.yml @@ -65,7 +65,7 @@ jobs: run: | docker buildx build . \ --tag ${{ env.IMG_NAME }}:${{ steps.version.outputs.result }}${{ matrix.suffix }} \ - --platform linux/amd64,linux/arm64 \ + --platform linux/amd64,linux/arm64,linux/s390x \ --build-arg pack_version=${{ steps.version.outputs.result }} \ --build-arg base_image=${{ matrix.base_image }} \ --provenance=false \