Update release workflow to conditionally enable latest tag for non-prerelease versions
CI / Go Tests (push) Successful in 12s
CI / Build (push) Successful in 10s
Format / gofmt (push) Successful in 6s
Release Artifacts / Validate release tag (push) Successful in 2s
Release Artifacts / Build and release executables (push) Successful in 15s
Release Artifacts / Build and release Docker image (push) Successful in 26s

- Modified the Docker image tagging step to include a condition that enables the 'latest' tag only when the release is not a prerelease, improving version management.
This commit is contained in:
2026-06-01 04:47:05 -05:00
parent ded1bb290b
commit 0dc1df2ded
+1 -1
View File
@@ -187,7 +187,7 @@ jobs:
images: ${{ secrets.GIT_REGISTRY || steps.image.outputs.registry_host }}/${{ steps.image.outputs.repository_lower }}
tags: |
type=raw,value=${{ needs.validate-tag.outputs.tag }}
type=raw,value=latest
type=raw,value=latest,enable=${{ needs.validate-tag.outputs.prerelease == 'false' }}
- name: Build and push Docker image
uses: docker/build-push-action@v5