-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.33 KB
/
docker-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Docker
on:
schedule:
# every day at 00:15 UTC
# https://crontab.guru/#15_0_*_*_*
- cron: '15 0 * * *'
push:
branches:
- 'main'
# Publish calver or pep440 tags as releases.
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+rc[0-9]+'
paths:
- '.github/workflows/docker-publish.yml'
- '.github/workflows/retry-workflow.yml'
- '.github/platforms.json'
- '.github/stages.json'
- '.dockerignore'
- 'Dockerfile'
pull_request:
branches:
- 'main'
paths:
- '.github/workflows/docker-publish.yml'
- '.github/workflows/retry-workflow.yml'
- '.github/platforms.json'
- '.github/stages.json'
- '.dockerignore'
- 'Dockerfile'
jobs:
setup:
name: Setup
# Build all multi-platform Docker images, all stages. The specified
# stages (in ./.github/stages.json) are built one after the other
# for the specified platforms (in ./.github/platforms.json) and,
# if successful, are finally merged via a Docker manifest and
# published to the Docker registry on GitHub.
uses: tiacsys/github-workflows/.github/workflows/docker-stages.yml@v1
with:
ghr-free-disk: false
platforms-json: ./.github/platforms.json
stages-json: ./.github/stages.json
secrets: inherit # pass all secrets