forked from fonoster/fonoster
-
Notifications
You must be signed in to change notification settings - Fork 0
258 lines (258 loc) Β· 9.97 KB
/
release.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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
name: release
on:
push:
paths:
- 'mods/**'
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(node -e "console.log(require('./lerna.json').version)")
- run: |
npm config set unsafe-perm true
npm install lerna -g
npm install
npm run bootstrap
npm run build
- name: Login Dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Publishing MediaServer Service
uses: benc-uk/workflow-dispatch@v1
with:
workflow: publish to docker hub
repo: fonoster/mediaserver
token: ${{ secrets.GH_PAT }}
ref: main
inputs: '{"version": "${{ steps.get_version.outputs.VERSION }}" }'
#- name: Publishing RTPEngine Service
# uses: benc-uk/workflow-dispatch@v1
# with:
# workflow: publish to docker hub
# repo: fonoster/rtpengine
# token: ${{ secrets.GH_PAT }}
# ref: main
# inputs: '{"version": "${{ steps.get_version.outputs.VERSION }}" }'
- name: Publishing JWTHelper Service
uses: benc-uk/workflow-dispatch@v1
with:
workflow: publish to docker hub
repo: fonoster/jwt-helper
token: ${{ secrets.GH_PAT }}
ref: main
inputs: '{"version": "${{ steps.get_version.outputs.VERSION }}" }'
- name: Publishing GRPC Gateway
uses: benc-uk/workflow-dispatch@v1
with:
workflow: publish to docker hub
repo: fonoster/grpc-gateway
token: ${{ secrets.GH_PAT }}
ref: main
inputs: '{"version": "${{ steps.get_version.outputs.VERSION }}" }'
- name: Copy and Push Traefik image
uses: akhilerm/[email protected]
with:
src: docker.io/traefik:v2.4
dst: |
docker.io/fonoster/traefik:${{ steps.get_version.outputs.VERSION }}
- name: Copy and Push Fluentd with Elasticsearch Plugin
uses: akhilerm/[email protected]
with:
src: fonoster/fluent:latest
dst: |
docker.io/fonoster/fluent:${{ steps.get_version.outputs.VERSION }}
- name: Copy and Push Vault
uses: akhilerm/[email protected]
with:
src: docker.io/library/vault:1.13.3
dst: |
docker.io/fonoster/vault:${{ steps.get_version.outputs.VERSION }}
- name: Copy and Push Elasticsearch
uses: akhilerm/[email protected]
with:
src: elasticsearch:7.16.3
dst: |
docker.io/fonoster/elasticsearch:${{ steps.get_version.outputs.VERSION }}
- name: Copy and Push Whoami image
uses: akhilerm/[email protected]
with:
src: docker.io/containous/whoami:latest
dst: |
docker.io/fonoster/whoami:${{ steps.get_version.outputs.VERSION }}
- name: Copy and Push Minio image
uses: akhilerm/[email protected]
with:
src: docker.io/minio/minio:RELEASE.2020-02-27T00-23-05Z
dst: |
docker.io/fonoster/minio:${{ steps.get_version.outputs.VERSION }}
- name: Copy and Push Redis image
uses: akhilerm/[email protected]
with:
src: docker.io/redis:6.0.3-alpine
dst: |
docker.io/fonoster/redis:${{ steps.get_version.outputs.VERSION }}
- name: Copy and Push RTPEngine image
uses: akhilerm/[email protected]
with:
src: docker.io/fonoster/rtpengine:20211114
dst: |
docker.io/fonoster/rtpengine:${{ steps.get_version.outputs.VERSION }}
- name: Copy and Push Routr image
uses: akhilerm/[email protected]
with:
src: docker.io/fonoster/routr:1.2.6
dst: |
docker.io/fonoster/routr:${{ steps.get_version.outputs.VERSION }}
- name: Copy and Push Rox as Voice image
uses: akhilerm/[email protected]
with:
src: docker.io/fonoster/rox:0.3.7
dst: |
docker.io/fonoster/voice:${{ steps.get_version.outputs.VERSION }}
- name: Copy and Push Autoheal
uses: akhilerm/[email protected]
with:
src: docker.io/willfarrell/autoheal:latest
dst: |
docker.io/fonoster/autoheal:${{ steps.get_version.outputs.VERSION }}
- name: Copy and Push Healthcheck
uses: akhilerm/[email protected]
with:
src: docker.io/fonoster/healthcheck:latest
dst: |
docker.io/fonoster/healthcheck:${{ steps.get_version.outputs.VERSION }}
- name: Publish to Docker Hub the Fonoster installer
uses: elgohr/Publish-Docker-Github-Action@master
env:
FONOSTER_VERSION: ${{ steps.get_version.outputs.VERSION }}
BRANCH: main
with:
name: fonoster/fonoster
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
buildargs: FONOSTER_VERSION,BRANCH
- name: Publish to Docker Hub the Apps API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/apps
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/apps
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Projects API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/projects
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/projects
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Monitor API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/monitor
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/monitor
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Users API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/users
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/users
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Secrets API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/secrets
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/secrets
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Funcs API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/funcs
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/funcs
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Agents API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/agents
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/agents
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Domains API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/domains
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/domains
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Numbers API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/numbers
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/numbers
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Providers API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/providers
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/providers
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Storage API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/storage
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/storage
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the CallManager API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/callmanager
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/callmanager
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Limiter API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/limiter
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/limiter
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"
- name: Publish to Docker Hub the Auth API
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: fonoster/auth
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: mods/auth
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"