add stable unique image tag
This commit is contained in:
14
.github/workflows/reusable-docker-build.yaml
vendored
14
.github/workflows/reusable-docker-build.yaml
vendored
@@ -55,14 +55,14 @@ 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=ref,event=pr
|
type=raw,value=stable-{{date 'YYYYMMDDHHmmss'}},enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
|
||||||
type=ref,event=branch
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
type=ref,event=branch
|
||||||
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
|
||||||
description: Three rules to (optionally) set for tag-rules, latest, prefix, and suffix
|
description: Three rules to (optionally) set for tag-rules, latest, prefix, and suffix
|
||||||
@@ -202,4 +202,4 @@ jobs:
|
|||||||
id: ghcr-tag
|
id: ghcr-tag
|
||||||
run: |
|
run: |
|
||||||
echo '::echo::on'
|
echo '::echo::on'
|
||||||
echo "::set-output name=tag::gha-${{ github.run_id }}"
|
echo "::set-output name=tag::gha-${{ github.run_id }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user