From: Vincent Bernat Date: Wed, 11 Mar 2026 07:06:23 +0000 (+0100) Subject: build: add a few more Docker platforms X-Git-Tag: 1.0.21~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18d8f3ef03ac8de47fc36e56c76f3d2ecb8f030a;p=thirdparty%2Flldpd.git build: add a few more Docker platforms And make it more readable. Fix #456. --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 210ffb89..d5bce7c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -143,6 +143,14 @@ jobs: runs-on: ubuntu-latest name: Build Docker images if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + env: + RELEASE_PLATFORMS: >- + linux/amd64, + linux/arm64, + linux/arm/v6, + linux/arm/v7 + DEFAULT_PLATFORMS: >- + linux/amd64 steps: - uses: actions/checkout@v6 - uses: docker/setup-qemu-action@v3 @@ -167,7 +175,7 @@ jobs: with: context: . file: Dockerfile - platforms: ${{ startsWith(github.ref, 'refs/tags/') && 'linux/amd64,linux/arm64,linux/arm/v6' || 'linux/amd64' }} + platforms: ${{ startsWith(github.ref, 'refs/tags/') && env.RELEASE_PLATFORMS || env.DEFAULT_PLATFORMS }} push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}