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.
1 parent 31527ee commit faa3d54Copy full SHA for faa3d54
1 file changed
.github/workflows/containers-publish.yml
@@ -26,17 +26,14 @@ jobs:
26
- name: Compute Docker container image addresses
27
run: |
28
DOCKER_REPOSITORY="ghcr.io/${GITHUB_REPOSITORY,,}"
29
- VERSION=$(cat VERSION)
30
31
if [[ "${{ github.event_name }}" == "release" ]]; then
32
- # Use the GitHub Release tag (removing 'v' prefix if present)
33
TAG="${GITHUB_REF#refs/tags/}"
34
DOCKER_TAG="${TAG#v}"
35
- elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
36
- # Stable version for main branch
37
- DOCKER_TAG="${VERSION}"
38
else
39
- # Pre-release version for develop and other branches
+ git fetch --tags --force
+ BASE_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
+ VERSION="${BASE_TAG#v}"
40
TIMESTAMP=$(date +%Y%m%d%H%M%S)
41
DOCKER_TAG="${VERSION}-dev.${TIMESTAMP}"
42
fi
0 commit comments