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.
2 parents f94eabb + 1c2c1f0 commit 3cb6c7aCopy full SHA for 3cb6c7a
.github/workflows/docker-image.yml
@@ -21,7 +21,11 @@ jobs:
21
id: set-matrix
22
run: |
23
echo "build_matrix=$(cat .github/platforms.json)" >> $GITHUB_OUTPUT
24
- echo "version=$(grep FROM ./Dockerfile | head -n1 | cut -d':' -f2 | cut -d' ' -f1 | xargs)" >> $GITHUB_OUTPUT
+ if [ "${{ github.event_name }}" = "release" ]; then
25
+ echo "version=${{ github.event.release.name }}" >> $GITHUB_OUTPUT
26
+ else
27
+ echo "version=$(grep FROM ./Dockerfile | head -n1 | cut -d':' -f2 | cut -d' ' -f1 | xargs)" >> $GITHUB_OUTPUT
28
+ fi
29
echo "repo_name_lower_case=$(echo ${GITHUB_REPOSITORY@L} | cut -d'/' -f2)" >> $GITHUB_OUTPUT
30
31
Build:
0 commit comments