fix the version not being displayed in the frontend

This commit is contained in:
maxDorninger
2025-06-30 11:15:32 +02:00
parent c251f8d2e4
commit c3b42ead0e

View File

@@ -70,6 +70,16 @@ jobs:
type=semver,pattern={{major}}
type=sha
- name: Extract version
id: version
run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
else
VERSION="dev-${GITHUB_SHA::7}"
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
@@ -80,4 +90,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ steps.meta.outputs.version }}
VERSION=${{ steps.version.outputs.version }}