added dynamic versioning to container build

This commit is contained in:
Xoconoch
2025-06-03 14:11:19 -06:00
parent 0a1c66b02a
commit 45dc22a721
2 changed files with 6 additions and 1 deletions

View File

@@ -40,6 +40,11 @@ jobs:
# Keep dev tag for main/master branch
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' }}
- name: Set version in config.html
run: |
VERSION=$(echo "${{ steps.meta.outputs.version }}" | sed 's/^v//')
sed -i "s|Set on build|Version: $VERSION|g" static/html/config.html
# Build and push Docker image with multiarch support
- name: Build and push
uses: docker/build-push-action@v4

View File

@@ -15,7 +15,7 @@
<div class="config-container">
<header class="config-header">
<h1 class="header-title">Configuration</h1>
<span class="version-text">2.0.1</span>
<span class="version-text">Set on build</span>
</header>
<div class="account-config card">