Skip to content

Commit

Permalink
feat(s390x): add s390x architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Dec 21, 2022
1 parent 6bdbe82 commit 12e6c85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
name: Create Release Artifacts
strategy:
matrix:
architecture: [aarch64, x86_64, ppc64le]
architecture: [aarch64, x86_64, ppc64le, s390x]
ostype: [linux-gnu, linux-musl]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -108,10 +108,12 @@ jobs:
docker pull ghcr.io/hutchic-org/kong-openssl:${{ needs.release.outputs.release-git-tag }}-aarch64-${{ matrix.ostype }}
docker pull ghcr.io/hutchic-org/kong-openssl:${{ needs.release.outputs.release-git-tag }}-x86_64-${{ matrix.ostype }}
docker pull ghcr.io/hutchic-org/kong-openssl:${{ needs.release.outputs.release-git-tag }}-ppc64le-${{ matrix.ostype }}
docker pull ghcr.io/hutchic-org/kong-openssl:${{ needs.release.outputs.release-git-tag }}-s390x-${{ matrix.ostype }}
docker manifest create ghcr.io/hutchic-org/kong-openssl:${{ needs.release.outputs.release-git-tag }}-${{ matrix.ostype }} \
ghcr.io/hutchic-org/kong-openssl:${{ needs.release.outputs.release-git-tag }}-aarch64-${{ matrix.ostype }} \
ghcr.io/hutchic-org/kong-openssl:${{ needs.release.outputs.release-git-tag }}-x86_64-${{ matrix.ostype }} \
ghcr.io/hutchic-org/kong-openssl:${{ needs.release.outputs.release-git-tag }}-ppc64le-${{ matrix.ostype }}
ghcr.io/hutchic-org/kong-openssl:${{ needs.release.outputs.release-git-tag }}-ppc64le-${{ matrix.ostype }} \
ghcr.io/hutchic-org/kong-openssl:${{ needs.release.outputs.release-git-tag }}-s390x-${{ matrix.ostype }}
docker manifest push ghcr.io/hutchic-org/kong-openssl:${{ needs.release.outputs.release-git-tag }}-${{ matrix.ostype }}
done:
Expand Down
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ ARG DOCKER_IMAGE_NAME


# List out all image permutations to trick dependabot
FROM --platform=linux/amd64 ghcr.io/hutchic-org/kong-build-tools-base-images:apk-1.1.2 as x86_64-linux-musl
FROM --platform=linux/amd64 ghcr.io/hutchic-org/kong-build-tools-base-images:rpm-1.1.2 as x86_64-linux-gnu
FROM --platform=linux/arm64 ghcr.io/hutchic-org/kong-build-tools-base-images:apk-1.1.2 as aarch64-linux-musl
FROM --platform=linux/arm64 ghcr.io/hutchic-org/kong-build-tools-base-images:rpm-1.1.2 as aarch64-linux-gnu
FROM --platform=linux/ppc64le ghcr.io/hutchic-org/kong-build-tools-base-images:apk-1.1.2 as ppc64le-linux-musl
FROM --platform=linux/ppc64le ghcr.io/hutchic-org/kong-build-tools-base-images:rpm-1.1.2 as ppc64le-linux-gnu

FROM --platform=linux/amd64 ghcr.io/hutchic-org/kong-build-tools-base-images:apk-1.2.0 as x86_64-linux-musl
FROM --platform=linux/amd64 ghcr.io/hutchic-org/kong-build-tools-base-images:rpm-1.2.0 as x86_64-linux-gnu
FROM --platform=linux/arm64 ghcr.io/hutchic-org/kong-build-tools-base-images:apk-1.2.0 as aarch64-linux-musl
FROM --platform=linux/arm64 ghcr.io/hutchic-org/kong-build-tools-base-images:rpm-1.2.0 as aarch64-linux-gnu
FROM --platform=linux/ppc64le ghcr.io/hutchic-org/kong-build-tools-base-images:apk-1.2.0 as ppc64le-linux-musl
FROM --platform=linux/ppc64le ghcr.io/hutchic-org/kong-build-tools-base-images:rpm-1.2.0 as ppc64le-linux-gnu
FROM --platform=linux/s390x ghcr.io/hutchic-org/kong-build-tools-base-images:apk-1.2.0 as s390x-linux-musl
FROM --platform=linux/s390x ghcr.io/hutchic-org/kong-build-tools-base-images:rpm-1.2.0 as s390x-linux-gnu

# Run the build script
FROM $ARCHITECTURE-$OSTYPE as build
Expand Down

0 comments on commit 12e6c85

Please sign in to comment.