From 06909a9e719cbc2237b9c4b0c2443935a23bddcd Mon Sep 17 00:00:00 2001 From: Marek Skrobacki Date: Tue, 6 Aug 2024 17:18:52 +0100 Subject: [PATCH] chore: enable container builds on more events For testing allow us to build the containers. Allow workflow_dispatch to rebuild the containers. Always push the container when running a PR. --- .github/workflows/containers.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/containers.yaml b/.github/workflows/containers.yaml index 35633394d..fbf4443f3 100644 --- a/.github/workflows/containers.yaml +++ b/.github/workflows/containers.yaml @@ -83,6 +83,7 @@ jobs: images: ghcr.io/rackerlabs/understack/dnsmasq tags: | type=raw,value=latest,enable={{is_default_branch}} + type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }} type=sha,enable={{is_default_branch}} labels: | org.opencontainers.image.title=dnsmasq for Understack's Ironic @@ -130,6 +131,7 @@ jobs: images: ghcr.io/rackerlabs/understack/${{ matrix.container.name }} tags: | type=raw,value=latest,enable={{is_default_branch}} + type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }} type=ref,event=tag type=ref,event=pr labels: |