From cd7fdfcefd8fa8343821b795b495056f95ccf20c Mon Sep 17 00:00:00 2001 From: Opliko Date: Fri, 12 May 2023 17:48:46 +0200 Subject: [PATCH] ci: tag with branch name if not default branch This should prevent failed runs like https://github.com/NodeBB/NodeBB/actions/runs/4959641483 --- .github/workflows/docker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index fda479175b..2451d9515c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -47,6 +47,7 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.x type=raw,value=latest,enable={{is_default_branch}} + type=ref,event=branch,enable={{#if is_default_branch}}false{{else}}true{{/if}} - name: Build and push Docker images uses: docker/build-push-action@v4