ci: use 1.0.0 and latest Docker tags for ghcr.io and Docker Hub
Drop v-prefixed image tags; version tags apply to both registries on release.
This commit is contained in:
1 parent
bc4cba7e52
commit
fcc60c0762
1 file changed
+2
-2
@@ -65,11 +65,11 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
|
# Same tags for ghcr.io and Docker Hub: latest + 1.0.0 (no v prefix)
|
||||||
images: ${{ steps.images.outputs.list }}
|
images: ${{ steps.images.outputs.list }}
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern=v{{version}}
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
|||||||
Reference in new issue
Block a user