From 98d376d5ed37d518cdf4c23618cba6a4a0637192 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Fri, 24 Nov 2023 13:42:40 +0100 Subject: [PATCH] chore(build): Allow pushing datestamp from workflow dispatch --- .github/workflows/docker.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index eb1905e..6bac075 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,6 +7,12 @@ on: branches: [main] schedule: - cron: "0 11 * * 4" + workflow_dispatch: + inputs: + pushDateTag: + description: 'Push datestamp (production) tag' + type: boolean + required: false concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -59,6 +65,7 @@ jobs: tags: | # Tag scheduled runs with date type=schedule,pattern={{date 'YYYYMMDD'}} + type=raw,value={{date 'YYYYMMDD'}},enable=${{ inputs.pushDateTag || false }} # Tag with branch name type=ref,event=branch # Tag with pr-number