From 55d51c3403f6d1a528d783f392706715955c497d Mon Sep 17 00:00:00 2001 From: 2mal3 <56305732+2mal3@users.noreply.github.com> Date: Sun, 26 Nov 2023 12:20:25 +0100 Subject: [PATCH] ci: fix no build --- .github/workflows/docker-build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 7a69409..3e1f37c 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -26,7 +26,7 @@ jobs: - name: Build uses: docker/build-push-action@v4 - if: github.ref != 'refs/heads/main' + if: github.ref == 'refs/heads/main' with: context: . cache-from: type=gha @@ -35,7 +35,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v4 - if: github.ref == 'refs/heads/main' + if: github.ref != 'refs/heads/main' with: context: . cache-from: type=gha