From d03546a90ddc3235b8e72e1458f50f4c3089f0d6 Mon Sep 17 00:00:00 2001 From: Bret Fisher Date: Sun, 15 May 2022 14:43:20 -0400 Subject: [PATCH] Update call-docker-build.yaml --- templates/call-docker-build.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/call-docker-build.yaml b/templates/call-docker-build.yaml index 491adb4..a865ec5 100644 --- a/templates/call-docker-build.yaml +++ b/templates/call-docker-build.yaml @@ -52,14 +52,15 @@ jobs: image-names: | ghcr.io/${{ github.repository }} - ### REQUIRED set rules for tagging images, based on special action syntax: + ### set rules for tagging images, based on special action syntax: ### https://github.com/docker/metadata-action#tags-input ### defaults to: tag-rules: | 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=semver,pattern={{version}} + type=raw,value=gha-${{ github.run_id }} ### path to where docker should copy files into image ### defaults to root of repository (.) @@ -77,4 +78,4 @@ jobs: ### Create a PR comment with image tags and labels ### defaults to false - # comment-enable: false \ No newline at end of file + # comment-enable: false