]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: only build ARM64 docker images for releases
authorVincent Bernat <vincent@bernat.ch>
Wed, 17 Aug 2022 15:36:42 +0000 (17:36 +0200)
committerVincent Bernat <vincent@bernat.ch>
Wed, 17 Aug 2022 15:37:38 +0000 (17:37 +0200)
.github/workflows/ci.yml

index ec54aee51f1441ed5678f3691374728e61b1fdc4..744bc04f42efa2b559e6915e77fb910c8e59a164 100644 (file)
@@ -161,19 +161,14 @@ jobs:
         with:
           context: .
           file: Dockerfile
-          platforms: |
-            linux/amd64
-            linux/arm64
-            linux/arm/v6
+          platforms: ${{ startsWith(github.ref, 'refs/tags/') && 'linux/amd64,linux/arm64,linux/arm/v6' || 'linux/amd64' }}
           push: true
           tags: ${{ steps.meta.outputs.tags }}
           labels: ${{ steps.meta.outputs.labels }}
 
   release:
     needs:
-      - build-linux
-      - build-macos
-      - build-bsd
+      - docker
     runs-on: ubuntu-latest
     name: Publish release
     if: startsWith(github.ref, 'refs/tags/')