-
-
Notifications
You must be signed in to change notification settings - Fork 80
115 lines (105 loc) · 3.06 KB
/
Copy pathtest.yaml
File metadata and controls
115 lines (105 loc) · 3.06 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Test supabase docker containers
on:
workflow_dispatch:
push:
branches: [main]
paths: ["docker/**/*", setup.sh]
pull_request:
types: [opened, synchronize, reopened] # default behavior
paths: ["docker/**/*", setup.sh]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
# pre_job can't be used in reusable workflow https://github.com/fkirc/skip-duplicate-actions/issues/327
pre_job:
permissions:
actions: write
contents: read
# continue-on-error: true
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: "same_content"
skip_after_successful_duplicate: "true"
cancel_others: "true"
caddy-build-basic-auth:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
strategy:
matrix:
os: [ubuntu-latest]
uses: "./.github/workflows/reusable_exec.yaml"
with:
runs_on: ${{matrix.os}}
artifact_name: "caddy_final"
repo: ${{github.event.repository.name}}
caddy-build-with-authelia:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
strategy:
matrix:
os: [ubuntu-latest]
uses: "./.github/workflows/reusable_exec.yaml"
with:
runs_on: ${{matrix.os}}
with_authelia: true
artifact_name: "caddy_final_with_authelia"
repo: ${{github.event.repository.name}}
caddy-build-with-authelia-and-redis:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
strategy:
matrix:
os: [ubuntu-latest]
uses: "./.github/workflows/reusable_exec.yaml"
with:
runs_on: ${{matrix.os}}
with_authelia_and_redis: true
artifact_name: "caddy_final_with_authelia_and_redis"
repo: ${{github.event.repository.name}}
nginx-build-basic-auth:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
strategy:
matrix:
os: [ubuntu-latest]
uses: "./.github/workflows/reusable_exec.yaml"
with:
runs_on: ${{matrix.os}}
artifact_name: "nginx_final"
repo: ${{github.event.repository.name}}
proxy: nginx
nginx-build-with-authelia:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
strategy:
matrix:
os: [ubuntu-latest]
uses: "./.github/workflows/reusable_exec.yaml"
with:
runs_on: ${{matrix.os}}
with_authelia: true
artifact_name: "nginx_final_with_authelia"
repo: ${{github.event.repository.name}}
proxy: nginx
nginx-build-with-authelia-and-redis:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
strategy:
matrix:
os: [ubuntu-latest]
uses: "./.github/workflows/reusable_exec.yaml"
with:
runs_on: ${{matrix.os}}
with_authelia_and_redis: true
artifact_name: "nginx_final_with_authelia_and_redis"
repo: ${{github.event.repository.name}}
proxy: nginx