Skip to content

Commit

Permalink
Merge pull request #18 from bo0tzz/main
Browse files Browse the repository at this point in the history
chore(build): Allow pushing datestamp from workflow dispatch
  • Loading branch information
alextran1502 authored Nov 24, 2023
2 parents 13464ad + 98d376d commit 123fadf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 123fadf

Please sign in to comment.