add stable unique image tag
This commit is contained in:
4
.github/workflows/reusable-docker-build.yaml
vendored
4
.github/workflows/reusable-docker-build.yaml
vendored
@@ -55,13 +55,13 @@ on:
|
|||||||
tag-rules:
|
tag-rules:
|
||||||
# https://github.com/marketplace/actions/docker-metadata-action#tags-input
|
# https://github.com/marketplace/actions/docker-metadata-action#tags-input
|
||||||
description: Use docker-metadata action to create tags from a key-value pair list in CSV format
|
description: Use docker-metadata action to create tags from a key-value pair list in CSV format
|
||||||
required: true
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: |
|
default: |
|
||||||
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
|
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
|
||||||
|
type=raw,value=stable-{{date 'YYYYMMDDHHmmss'}},enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=semver,pattern={{version}}
|
|
||||||
type=raw,value=gha-${{ github.run_id }}
|
type=raw,value=gha-${{ github.run_id }}
|
||||||
flavor-rules:
|
flavor-rules:
|
||||||
# https://github.com/marketplace/actions/docker-metadata-action#flavor-input
|
# https://github.com/marketplace/actions/docker-metadata-action#flavor-input
|
||||||
|
|||||||
Reference in New Issue
Block a user