]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: do not run test container generation on forked repos by default
authorHenrik Gombos <henrik99999@gmail.com>
Sun, 30 Jul 2023 13:31:56 +0000 (09:31 -0400)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 31 Jul 2023 09:35:20 +0000 (11:35 +0200)
If CONTAINER Github variable set, reenable the github action
schedule.

.github/workflows/container.yml

index 9379ae1c2eb5d88530f0646c751700c0aed39323..dcb99affb273e8c44a337b4fcf4dc995cad3aef9 100644 (file)
@@ -19,6 +19,7 @@ permissions:
 
 jobs:
     push_to_registry:
+        if: github.repository == 'dracutdevs/dracut' || vars.CONTAINER == 'enabled'
         name: Build and push containers image to GitHub Packages
         runs-on: ubuntu-latest
         concurrency: