From d428f4f321563ceaa93975de1f5b02ba031e3fbc Mon Sep 17 00:00:00 2001 From: furyhawk Date: Sun, 31 May 2026 23:52:43 +0800 Subject: [PATCH] ci: support manual release tag for image publish --- .github/workflows/release-image.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release-image.yml b/.github/workflows/release-image.yml index 9820519..b694fd9 100644 --- a/.github/workflows/release-image.yml +++ b/.github/workflows/release-image.yml @@ -8,6 +8,11 @@ on: tags: - "v*" workflow_dispatch: + inputs: + release_tag: + description: "Release tag to publish (for example v0.2.0). Optional." + required: false + type: string permissions: contents: read @@ -41,6 +46,7 @@ jobs: images: ghcr.io/${{ github.repository }} tags: | type=ref,event=tag + type=raw,value=${{ github.event.inputs.release_tag }},enable=${{ github.event_name == 'workflow_dispatch' && github.event.inputs.release_tag != '' }} type=raw,value=latest - name: Build and push