From 6e4932551a6aca781e9880412712e4c865a7a560 Mon Sep 17 00:00:00 2001 From: devStorm <59678453+developStorm@users.noreply.github.com> Date: Mon, 20 May 2024 21:17:14 +0000 Subject: [PATCH] build: docker image only on main branch push or tagging --- .github/workflows/docker-publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 61c38a02..fd4b66aa 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -6,6 +6,9 @@ name: Publish Docker image on: push: + branches: + - master + tags: env: REGISTRY: ghcr.io @@ -118,6 +121,7 @@ jobs: type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} + type=ref,event=tag type=ref,event=branch - name: Log in to the Container registry