add more architectures to build

This commit is contained in:
Lukas Prettenthaler 2024-04-12 15:53:08 -06:00
parent d18dfe3b09
commit 706b94c2ac
No known key found for this signature in database
GPG Key ID: 58E5A82932BCE65D
2 changed files with 14 additions and 2 deletions

View File

@ -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
@ -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: |
@ -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' }}

View File

@ -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
@ -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: |
@ -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' }}