-
Notifications
You must be signed in to change notification settings - Fork 12
94 lines (92 loc) · 3.88 KB
/
ci.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
name: Docker build and push
on:
push:
branches:
- "**"
tags:
- v[0-9]+.[0-9]+.[0-9]+
workflow_dispatch:
jobs:
# PREPARE (GENERATE ALL)
prepare_build:
uses: vxcontrol/soldr/.github/workflows/prepare_build.yml@master
prepare_build_prod:
uses: vxcontrol/soldr/.github/workflows/prepare_build_prod.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
secrets: inherit
# TESTS AND LINTERS
test_go:
uses: vxcontrol/soldr/.github/workflows/test-go.yml@master
needs: prepare_build
# BUILD BINARY
build_api:
uses: vxcontrol/soldr/.github/workflows/api-build.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: [test_go, prepare_build_prod]
build_web:
uses: vxcontrol/soldr/.github/workflows/web-build.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: [test_go, prepare_build_prod]
build_server:
uses: vxcontrol/soldr/.github/workflows/server-build.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: [test_go, prepare_build_prod]
build_agent_linux:
uses: vxcontrol/soldr/.github/workflows/agent-build-linux.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: [test_go, prepare_build_prod]
build_agent_windows:
uses: vxcontrol/soldr/.github/workflows/agent-build-windows.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: [ test_go, prepare_build_prod ]
build_agent_osx:
uses: vxcontrol/soldr/.github/workflows/agent-build-osx.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: [ test_go, prepare_build_prod ]
# BUILD DOCKER
build_docker_vxweb:
uses: vxcontrol/soldr/.github/workflows/build-docker-vxweb.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: build_web
secrets: inherit
build_docker_vxapi:
uses: vxcontrol/soldr/.github/workflows/build-docker-vxapi.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: build_api
secrets: inherit
build_docker_vxagent:
uses: vxcontrol/soldr/.github/workflows/build-docker-vxagent.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: build_agent_linux
secrets: inherit
build_docker_vxres:
uses: vxcontrol/soldr/.github/workflows/build-docker-vxres.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: [ build_installer_vxagent_linux, build_installer_vxagent_windows, build_installer_vxagent_osx ]
secrets: inherit
build_docker_vxserver:
uses: vxcontrol/soldr/.github/workflows/build-docker-vxserver.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: build_server
secrets: inherit
build_docker_vxdbmigrate:
uses: vxcontrol/soldr/.github/workflows/build-docker-dbmigrate.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: test_go
secrets: inherit
# BUILD INSTALLER OF AGENT
build_installer_vxagent_linux:
uses: vxcontrol/soldr/.github/workflows/build-installer-vxagent-linux.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: build_agent_linux
secrets: inherit
build_installer_vxagent_windows:
uses: vxcontrol/soldr/.github/workflows/build-installer-vxagent-windows.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: build_agent_windows
secrets: inherit
build_installer_vxagent_osx:
uses: vxcontrol/soldr/.github/workflows/build-installer-vxagent-osx.yml@master
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags')
needs: build_agent_osx
secrets: inherit