From b6c9b6186c6ebc2141262d0e9d8f8df7fdb00e97 Mon Sep 17 00:00:00 2001 From: Ritik Verma Date: Mon, 16 Oct 2023 23:58:04 +0530 Subject: [PATCH] Prevent the creation of the `main` tag on Docker Hub (#166) --- .github/workflows/docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 2fe0ff08..006fd4fb 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -32,7 +32,7 @@ jobs: rob93c/stickerify tags: | type=raw,value=latest,enable={{is_default_branch}} - type=ref,event=branch + type=ref,event=branch,enable=${{ github.ref != 'refs/heads/main' }} type=ref,event=pr - name: Upload Docker image