From 161d0f272ebf8f34a8e56d5032c26ecb7bef8568 Mon Sep 17 00:00:00 2001 From: Richard Hao Date: Tue, 10 Oct 2023 23:13:27 +0800 Subject: [PATCH] fix: build docker image on tags created --- .github/workflows/docker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f9d719c..852dce7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -2,8 +2,8 @@ name: Build docker image on: workflow_dispatch: + create: push: - branches: ["main"] tags: - "v*.*.*" paths: @@ -14,6 +14,7 @@ permissions: jobs: build: + if: ${{ startsWith(github.ref, 'refs/tags/') }} name: build and publish docker image runs-on: ubuntu-latest steps: