From 9f2d92239d32e7c91cf2ffa2ea2d2298c713c76b Mon Sep 17 00:00:00 2001 From: quadseed Date: Mon, 12 Feb 2024 12:42:14 +0900 Subject: [PATCH] Fix: [Workflow] fix workflow --- .github/workflows/build.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2bee4ce..669da3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,13 @@ name: Build Docker Image on: - push: - tags: - - 'v*' + workflow_dispatch: + inputs: + version: + type: string + description: 'Release Version. For example, `1.2.8`' + required: true + default: '' jobs: build: @@ -18,8 +22,8 @@ jobs: with: images: ghcr.io/${{ github.repository_owner }}/tars-server tags: | - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{version}},value=v${{ github.event.inputs.version }} + type=semver,pattern={{major}}.{{minor}},value=v${{ github.event.inputs.version }} - name: Login to GitHub Container Registry uses: docker/login-action@v3