]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: fix tags for dev containers
authorJo Zzsi <jozzsicsataban@gmail.com>
Mon, 21 Oct 2024 19:31:23 +0000 (15:31 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Mon, 21 Oct 2024 20:06:30 +0000 (16:06 -0400)
.github/workflows/container-dev.yml

index 9e2b37846cf98d37c96fdccfd08757d4b4d13469..3336cb51004dec131a1f3771f01d61185b518105 100644 (file)
@@ -4,6 +4,16 @@ name: Container (Dev)
 on:
     schedule:
         -  cron: '30 11 * * *'   # every day at 11:30 UTC
+    push:
+        branches: [ main ]
+        paths:
+            - 'test/container/**'
+            - '.github/workflows/container-dev.yml'
+    pull_request:
+        branches: [ main ]
+        paths:
+            - 'test/container/**'
+            - '.github/workflows/container-dev.yml'
 
 permissions:
     packages: write
@@ -41,6 +51,7 @@ jobs:
                 uses: docker/build-push-action@v6
                 with:
                     file: test/container/${{ matrix.config.dockerfile }}
+                    tags: ghcr.io/${{env.repository_owner}}/${{ matrix.config.tag }}
                     push: ${{ github.event_name == 'schedule' }}
                     platforms: ${{ matrix.config.platform }}
                     build-args: |