Skip to content

Commit c6aada3

Browse files
authored
docker-publish-fix4-(...)
1 parent 8505d75 commit c6aada3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker-publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
version:
99
description: 'Version tag for the Docker image'
1010
required: true
11-
default: 'v#.#.#'
11+
default: 'latest' # You can set a default version if desired
1212

1313
jobs:
1414
build-and-push:
@@ -37,10 +37,10 @@ jobs:
3737
username: ${{ secrets.DOCKERHUB_USER }}
3838
password: ${{ secrets.DOCKERHUB_AT }}
3939

40-
- name: Extract release version
41-
id: get_version
40+
- name: Use version input
41+
id: use_version
4242
run: |
43-
VERSION=${GITHUB_REF#refs/tags/}
43+
VERSION="${{ github.event.inputs.version }}"
4444
VERSION_LOWER=$(echo $VERSION | tr '[:upper:]' '[:lower:]')
4545
echo "VERSION=$VERSION_LOWER" >> $GITHUB_ENV
4646

0 commit comments

Comments
 (0)