Skip to content

Commit 5014e91

Browse files
ci: container action
Signed-off-by: Henry Gressmann <[email protected]>
1 parent 84fd9a1 commit 5014e91

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/container.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,25 @@ name: "Build & Publish Container Image"
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: "Tag (e.g. liwan-v0.1.0)"
8+
required: true
9+
type: string
510

611
jobs:
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

0 commit comments

Comments
 (0)