-
Notifications
You must be signed in to change notification settings - Fork 48
83 lines (75 loc) · 2.04 KB
/
build-experimental.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# See
# - https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
# - https://docs.github.com/en/actions/learn-github-actions/contexts
# - https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md
name: Experimental images
on:
# Rebuild every quarter on Sunday at 8:20 UTC
schedule:
- cron: 20 8 * 1/3 0
# Build on push to master
push:
branches:
- master
paths:
- .github/workflows/build-experimental.yaml
- "*.dockerfile"
- files/**
concurrency:
group: build-experimental-images
cancel-in-progress: true
# Run the automated tests first, then publish the images if the tests pass
jobs:
test:
name: ${{ matrix.dockerfile }}
uses: ./.github/workflows/test-job.yaml
with:
dockerfile: ${{ matrix.dockerfile }}
strategy:
fail-fast: true
matrix:
dockerfile:
- apache
- apache-php8.2
- nginx
- nginx-php8.2
apache:
name: Apache
needs: test
uses: ./.github/workflows/build-job.yaml
with:
dockerfile: apache.dockerfile
image-version: experimental
tags: |
ckulka/baikal:experimental-apache
ckulka/baikal:experimental
secrets: inherit
apache_php82:
name: Apache (PHP 8.2)
needs: test
uses: ./.github/workflows/build-job.yaml
with:
dockerfile: apache-php8.2.dockerfile
image-version: experimental
tags: |
ckulka/baikal:experimental-apache-php8.2
ckulka/baikal:experimental-php8.2
secrets: inherit
nginx:
name: Nginx
needs: test
uses: ./.github/workflows/build-job.yaml
with:
dockerfile: nginx.dockerfile
image-version: experimental
tags: ckulka/baikal:experimental-nginx
secrets: inherit
nginx_php82:
name: Nginx (PHP 8.2)
needs: test
uses: ./.github/workflows/build-job.yaml
with:
dockerfile: nginx-php8.2.dockerfile
image-version: experimental
tags: ckulka/baikal:experimental-nginx-php8.2
secrets: inherit