From 39f9b997edb6e40032f0d7238658246337739ef3 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Thu, 23 Nov 2023 00:17:48 +0100 Subject: [PATCH] Fix: Only master branch should push the docker image --- .gitea/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index dd69204..7c00e88 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -65,7 +65,8 @@ jobs: uses: https://github.com/docker/build-push-action@v5 with: context: . - push: true + push: ${{ gitea.ref == 'refs/heads/master' }} + # TODO: Automatically add the correct tags here tags: git.huizinga.dev/dreaded_x/automation_rs:latest deploy: