From c210b92d44bb7af3c283559f7752d72a97779f3b Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 20 May 2024 17:50:00 +0200 Subject: [PATCH] fix: :construction_worker: use default branch to build image --- .gitea/workflows/dl.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/dl.yml b/.gitea/workflows/dl.yml index dbbcd36..aff84ef 100644 --- a/.gitea/workflows/dl.yml +++ b/.gitea/workflows/dl.yml @@ -36,6 +36,6 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: docker/build-push-action@v5 with: - push: ${{ gitea.ref_name == 'master' || gitea.ref_type == 'tag' }} + push: ${{ gitea.ref_name == gitea.event.repository.default_branch || gitea.ref_type == 'tag' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}