diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 1ace2a2..676ce12 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -42,7 +42,9 @@ jobs: - name: Set version in config.html run: | - VERSION=$(echo "${{ steps.meta.outputs.version }}" | sed 's/^v//') + TAG_VERSION="${{ github.ref_name }}" + # Remove 'v' prefix if it exists + VERSION="${TAG_VERSION#v}" sed -i "s|Set on build|Version: $VERSION|g" static/html/config.html # Build and push Docker image with multiarch support diff --git a/.gitignore b/.gitignore index f8065d8..f72d69f 100755 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,5 @@ logs/spotizerr.log static/js data logs/ -.env \ No newline at end of file +.env +Test.py \ No newline at end of file