We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8505d75 commit c6aada3Copy full SHA for c6aada3
.github/workflows/docker-publish.yaml
@@ -8,7 +8,7 @@ on:
8
version:
9
description: 'Version tag for the Docker image'
10
required: true
11
- default: 'v#.#.#'
+ default: 'latest' # You can set a default version if desired
12
13
jobs:
14
build-and-push:
@@ -37,10 +37,10 @@ jobs:
37
username: ${{ secrets.DOCKERHUB_USER }}
38
password: ${{ secrets.DOCKERHUB_AT }}
39
40
- - name: Extract release version
41
- id: get_version
+ - name: Use version input
+ id: use_version
42
run: |
43
- VERSION=${GITHUB_REF#refs/tags/}
+ VERSION="${{ github.event.inputs.version }}"
44
VERSION_LOWER=$(echo $VERSION | tr '[:upper:]' '[:lower:]')
45
echo "VERSION=$VERSION_LOWER" >> $GITHUB_ENV
46
0 commit comments