File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,25 @@ name: "Build & Publish Container Image"
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ tag :
7+ description : " Tag (e.g. liwan-v0.1.0)"
8+ required : true
9+ type : string
510
611jobs :
712 docker-build :
813 runs-on : ubuntu-latest
914 steps :
1015 - uses : actions/checkout@v4
16+ with :
17+ ref : ${{ github.event.inputs.tag }}
1118 - name : Setup Docker Buildx
1219 uses : docker/setup-buildx-action@v1
1320 - name : Extract Semver
1421 id : semver
1522 run : |
16- SEMVER_VERSION=$(echo "${GITHUB_REF_NAME} " | sed 's/^ liwan-v//')
23+ SEMVER_VERSION=$(echo "${{ github.event.inputs.tag }} " | sed -E 's/liwan-v//')
1724 echo "SEMVER_VERSION=$SEMVER_VERSION" >> $GITHUB_OUTPUT
1825 - name : Setup Docker Metadata
1926 uses : docker/metadata-action@v5
You can’t perform that action at this time.
0 commit comments