-
Notifications
You must be signed in to change notification settings - Fork 123
128 lines (112 loc) · 3.79 KB
/
build.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
name: build
on: pull_request
jobs:
frontend:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build frontend
run: docker build -f ./build/package/frontend.dockerfile .
api:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build servers
run: docker build -f ./build/package/servers.dockerfile . --build-arg SERVER_TARGET=api
api-arm:
runs-on: hatchet-arm64-2
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build servers
run: docker build -f ./build/package/servers.dockerfile . --build-arg SERVER_TARGET=api
engine:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build servers
run: docker build -f ./build/package/servers.dockerfile . --build-arg SERVER_TARGET=engine
engine-arm:
runs-on: hatchet-arm64-2
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build servers
run: docker build -f ./build/package/servers.dockerfile . --build-arg SERVER_TARGET=engine
admin:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build servers
run: docker build -f ./build/package/servers.dockerfile . --build-arg SERVER_TARGET=admin
admin-arm:
runs-on: hatchet-arm64-2
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build servers
run: docker build -f ./build/package/servers.dockerfile . --build-arg SERVER_TARGET=admin
migrate:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build migrate
run: docker build -f ./build/package/migrate.dockerfile .
migrate-arm:
runs-on: hatchet-arm64-2
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build migrate
run: docker build -f ./build/package/migrate.dockerfile .
lite-arm:
runs-on: hatchet-arm64-2
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build lite
run: |
DOCKER_BUILDKIT=1 docker build -f ./build/package/servers.dockerfile \
--build-arg SERVER_TARGET=lite \
--platform linux/arm64 \
-t hatchet-lite-tmp:arm64 \
. &
DOCKER_BUILDKIT=1 docker build -f ./build/package/servers.dockerfile \
--build-arg SERVER_TARGET=admin \
--platform linux/arm64 \
-t hatchet-admin-tmp:arm64 \
. &
wait
DOCKER_BUILDKIT=1 docker build -f ./build/package/lite.dockerfile \
--build-arg HATCHET_LITE_IMAGE=hatchet-lite-tmp:arm64 \
--build-arg HATCHET_ADMIN_IMAGE=hatchet-admin-tmp:arm64 \
--platform linux/arm64 \
.
lite-amd:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Build lite
run: |
DOCKER_BUILDKIT=1 docker build -f ./build/package/servers.dockerfile \
--build-arg SERVER_TARGET=lite \
--platform linux/amd64 \
-t hatchet-lite-tmp:amd64 \
. &
DOCKER_BUILDKIT=1 docker build -f ./build/package/servers.dockerfile \
--build-arg SERVER_TARGET=admin \
--platform linux/amd64 \
-t hatchet-admin-tmp:amd64 \
. &
wait
DOCKER_BUILDKIT=1 docker build -f ./build/package/lite.dockerfile \
--build-arg HATCHET_LITE_IMAGE=hatchet-lite-tmp:amd64 \
--build-arg HATCHET_ADMIN_IMAGE=hatchet-admin-tmp:amd64 \
--platform linux/amd64 \
.