Skip to content

Commit

Permalink
add more architectures to build
Browse files Browse the repository at this point in the history
  • Loading branch information
zyclonite committed Apr 12, 2024
1 parent d18dfe3 commit 706b94c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/multiarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
{name: "linux/arm64/v8", tag: "arm64v8"},
{name: "linux/arm/v7", tag: "arm32v7"},
{name: "linux/arm/v6", tag: "arm32v6"},
{name: "linux/riscv64", tag: "riscv64"}
{name: "linux/riscv64", tag: "riscv64"},
{name: "linux/ppc64le", tag: "ppc64le"},
{name: "linux/s390x", tag: "s390x"}
]
steps:
- name: Checkout zerotier-docker
Expand Down Expand Up @@ -76,6 +78,8 @@ jobs:
podman load -i ./image-arm32v7/image.tar
podman load -i ./image-arm32v6/image.tar
podman load -i ./image-riscv64/image.tar
podman load -i ./image-ppc64le/image.tar
podman load -i ./image-s390x/image.tar
- name: Create multi-arch manifest
run: |
Expand All @@ -86,6 +90,8 @@ jobs:
buildah manifest add --arch arm --variant v7 ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:arm32v7
buildah manifest add --arch arm --variant v6 ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:arm32v6
buildah manifest add --arch riscv64 ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:riscv64
buildah manifest add --arch ppc64le ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:ppc64le
buildah manifest add --arch s390x ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:s390x
- name: Push unstable images
if: ${{ github.event_name == 'push' }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/router.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:
{name: "linux/arm64/v8", tag: "arm64v8"},
{name: "linux/arm/v7", tag: "arm32v7"},
{name: "linux/arm/v6", tag: "arm32v6"},
{name: "linux/riscv64", tag: "riscv64"}
{name: "linux/riscv64", tag: "riscv64"},
{name: "linux/ppc64le", tag: "ppc64le"},
{name: "linux/s390x", tag: "s390x"}
]
steps:
- name: Checkout zerotier-docker
Expand Down Expand Up @@ -85,6 +87,8 @@ jobs:
podman load -i ./image-arm32v7/image.tar
podman load -i ./image-arm32v6/image.tar
podman load -i ./image-riscv64/image.tar
podman load -i ./image-ppc64le/image.tar
podman load -i ./image-s390x/image.tar
- name: Create multi-arch manifest
run: |
Expand All @@ -95,6 +99,8 @@ jobs:
buildah manifest add --arch arm --variant v7 ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:arm32v7
buildah manifest add --arch arm --variant v6 ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:arm32v6
buildah manifest add --arch riscv64 ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:riscv64
buildah manifest add --arch ppc64le ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:ppc64le
buildah manifest add --arch s390x ${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:s390x
- name: Push unstable images
if: ${{ inputs.event == 'push' }}
Expand Down

0 comments on commit 706b94c

Please sign in to comment.