]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: add a few more Docker platforms
authorVincent Bernat <vincent@bernat.ch>
Wed, 11 Mar 2026 07:06:23 +0000 (08:06 +0100)
committerVincent Bernat <vincent@bernat.ch>
Wed, 11 Mar 2026 07:06:23 +0000 (08:06 +0100)
And make it more readable.

Fix #456.

.github/workflows/ci.yml

index 210ffb892bafdc15730a6e45d04b7589b643b70a..d5bce7c7adf58d4d4bf8b634f3edc0430532912e 100644 (file)
@@ -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 }}