Allow to templatize the schedule tag

This commit is contained in:
CrazyMax 2020-10-25 14:50:33 +01:00
parent 88d487154b
commit 23f5d6bcf4
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
10 changed files with 14260 additions and 49 deletions

View file

@ -2,7 +2,7 @@ name: ci
on:
schedule:
- cron: '0 10 * * 0' # everyday sunday at 10am
- cron: '0 * * * *' # every hours
push:
branches:
- '**'
@ -22,7 +22,6 @@ jobs:
uses: actions/checkout@v2.3.3
-
name: Docker meta
id: docker_meta
uses: ./
with:
images: |
@ -30,6 +29,30 @@ jobs:
ghcr.io/name/app
tag-sha: true
tag-schedule:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag-schedule:
- ""
- cron-{{date 'YYYYMMDD'}}
- {{date 'YYYYMMDD-HHmmss'}}
- schedule
steps:
-
name: Checkout
uses: actions/checkout@v2.3.3
-
name: Docker meta
uses: ./
with:
images: |
${{ env.DOCKER_IMAGE }}
ghcr.io/name/app
tag-sha: true
tag-schedule: ${{ matrix.tag-schedule }}
docker-push:
runs-on: ubuntu-latest
services: