fix: use type=raw for Docker tags to preserve v prefix
docker/metadata-action type=semver strips the v prefix, causing tag mismatch between git tags (v0.1.3) and Docker tags (0.1.3). Switch to type=raw to pass through the version as-is.
This commit is contained in:
@@ -134,8 +134,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}},value=${{ needs.release.outputs.version }}
|
type=raw,value=${{ needs.release.outputs.version }}
|
||||||
type=semver,pattern={{major}}.{{minor}},value=${{ needs.release.outputs.version }}
|
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
|
|||||||
Reference in New Issue
Block a user