From 9527894df6e532a6d84f52ca94e10f5bcff283a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 6 Oct 2024 09:24:46 +0200 Subject: [PATCH] Support dev branch --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7c0ce13..f99f2e3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,9 @@ name: Create and publish a Docker image on: push: - branches: ['main'] + branches: + - main + - dev workflow_dispatch: env: @@ -49,7 +51,7 @@ jobs: with: context: . file: ${{ matrix.image }} - push: true + push: ${{ github.ref == 'refs/heads/main' }} tags: | ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ matrix.image }}:${{ steps.meta.outputs.tag }} ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ matrix.image }}:latest