update the workflow
This commit is contained in:
4
.github/workflows/docker-build.yml
vendored
4
.github/workflows/docker-build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user