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
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:
@@ -187,7 +187,7 @@ jobs:
|
|||||||
images: ${{ secrets.GIT_REGISTRY || steps.image.outputs.registry_host }}/${{ steps.image.outputs.repository_lower }}
|
images: ${{ secrets.GIT_REGISTRY || steps.image.outputs.registry_host }}/${{ steps.image.outputs.repository_lower }}
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=${{ needs.validate-tag.outputs.tag }}
|
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
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user