-
Notifications
You must be signed in to change notification settings - Fork 0
153 lines (153 loc) · 4.74 KB
/
release.yml
File metadata and controls
153 lines (153 loc) · 4.74 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
name: release
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- ".github/**"
- "**/*.md"
jobs:
changes:
runs-on: ubuntu-latest
outputs:
base: ${{ steps.filter.outputs.base }}
gogs: ${{ steps.filter.outputs.gogs }}
jenkins: ${{ steps.filter.outputs.jenkins }}
mysql: ${{ steps.filter.outputs.mysql }}
nginx: ${{ steps.filter.outputs.nginx }}
node: ${{ steps.filter.outputs.node }}
php: ${{ steps.filter.outputs.php }}
postgres: ${{ steps.filter.outputs.postgres }}
redis: ${{ steps.filter.outputs.redis }}
registry: ${{ steps.filter.outputs.registry }}
stalwart: ${{ steps.filter.outputs.stalwart }}
traefik: ${{ steps.filter.outputs.traefik }}
steps:
- name: checkout
uses: actions/checkout@v6
- name: detect changes
uses: dorny/paths-filter@v4
id: filter
with:
filters: |
base:
- 'base/**'
gogs:
- 'gogs/**'
jenkins:
- 'jenkins/**'
mysql:
- 'mysql/**'
nginx:
- 'nginx/**'
node:
- 'node/**'
php:
- 'php/**'
postgres:
- 'postgres/**'
redis:
- 'redis/**'
registry:
- 'registry/**'
stalwart:
- 'stalwart/**'
traefik:
- 'traefik/**'
base:
needs: changes
if: needs.changes.outputs.base == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/base
context: "{{defaultContext}}:base"
secrets: inherit
gogs:
needs: [changes, base]
if: needs.base.result == 'success' || needs.changes.outputs.gogs == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/gogs
context: "{{defaultContext}}:gogs"
secrets: inherit
jenkins:
needs: [changes, base]
if: needs.base.result == 'success' || needs.changes.outputs.jenkins == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/jenkins
context: "{{defaultContext}}:jenkins"
secrets: inherit
mysql:
needs: [ changes, base ]
if: needs.base.result == 'success' || needs.changes.outputs.mysql == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/mysql
context: "{{defaultContext}}:mysql"
secrets: inherit
nginx:
needs: [changes, base]
if: needs.base.result == 'success' || needs.changes.outputs.nginx == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/nginx
context: "{{defaultContext}}:nginx"
secrets: inherit
node:
needs: [changes, base]
if: needs.base.result == 'success' || needs.changes.outputs.node == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/node
context: "{{defaultContext}}:node"
secrets: inherit
php:
needs: [changes, base]
if: needs.base.result == 'success' || needs.changes.outputs.php == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/php
context: "{{defaultContext}}:php"
secrets: inherit
postgres:
needs: [changes, base]
if: needs.base.result == 'success' || needs.changes.outputs.postgres == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/postgres
context: "{{defaultContext}}:postgres"
secrets: inherit
redis:
needs: [ changes, base ]
if: needs.base.result == 'success' || needs.changes.outputs.redis == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/redis
context: "{{defaultContext}}:redis"
secrets: inherit
registry:
needs: [changes, base]
if: needs.base.result == 'success' || needs.changes.outputs.registry == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/registry
context: "{{defaultContext}}:registry"
secrets: inherit
stalwart:
needs: [ changes, base ]
if: needs.base.result == 'success' || needs.changes.outputs.stalwart == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/stalwart
context: "{{defaultContext}}:stalwart"
secrets: inherit
traefik:
needs: [changes, base]
if: needs.base.result == 'success' || needs.changes.outputs.traefik == 'true'
uses: akilli/docker/.github/workflows/dockerhub.yml@master
with:
image: akilli/traefik
context: "{{defaultContext}}:traefik"
secrets: inherit