mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Tweaking the metadata/image tagging mechanism
This commit is contained in:
parent
072eec4004
commit
c7850fe18f
9
.github/workflows/docker-image.yaml
vendored
9
.github/workflows/docker-image.yaml
vendored
@ -55,6 +55,15 @@ jobs:
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
tags: |
|
||||
type=schedule
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
|
||||
type=sha
|
||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
||||
|
||||
# This step uses the `docker/build-push-action` action to build the
|
||||
# image, based on your repository's `Dockerfile`. If the build succeeds,
|
||||
|
Loading…
Reference in New Issue
Block a user