add stable unique image tag
This commit is contained in:
12
.github/workflows/reusable-docker-build.yaml
vendored
12
.github/workflows/reusable-docker-build.yaml
vendored
@@ -55,14 +55,14 @@ on:
|
||||
tag-rules:
|
||||
# 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
|
||||
required: true
|
||||
required: false
|
||||
type: string
|
||||
default: |
|
||||
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
|
||||
type=ref,event=pr
|
||||
type=ref,event=branch
|
||||
type=semver,pattern={{version}}
|
||||
type=raw,value=gha-${{ github.run_id }}
|
||||
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=branch
|
||||
type=raw,value=gha-${{ github.run_id }}
|
||||
flavor-rules:
|
||||
# https://github.com/marketplace/actions/docker-metadata-action#flavor-input
|
||||
description: Three rules to (optionally) set for tag-rules, latest, prefix, and suffix
|
||||
|
||||
Reference in New Issue
Block a user