-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
30 lines (21 loc) · 1.27 KB
/
Makefile
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
.PHONY: frontend server postgres clickhouse-amd64 clickhouse-arm64 clickhouse push
release: frontend server postgres clickhouse push
server:
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/inovex/attractify/attractify-server -f server/Dockerfile . --push
postgres:
docker build -t ghcr.io/inovex/attractify/attractify-postgres -f docker/postgres/Dockerfile .
clickhouse-amd64:
docker build -t ghcr.io/inovex/attractify/attractify-clickhouse:amd64 -f docker/clickhouse/Dockerfile.amd64 .
clickhouse-arm64:
docker build -t ghcr.io/inovex/attractify/attractify-clickhouse:arm64 -f docker/clickhouse/Dockerfile.arm64 .
clickhouse: clickhouse-arm64 clickhouse-amd64
frontend:
cd frontend; ./build.sh
push:
docker push ghcr.io/inovex/attractify/attractify-clickhouse:amd64
docker push ghcr.io/inovex/attractify/attractify-clickhouse:arm64
docker manifest rm ghcr.io/inovex/attractify/attractify-clickhouse
docker manifest create ghcr.io/inovex/attractify/attractify-clickhouse ghcr.io/inovex/attractify/attractify-clickhouse:amd64 ghcr.io/inovex/attractify/attractify-clickhouse:arm64
docker manifest push ghcr.io/inovex/attractify/attractify-clickhouse
docker push ghcr.io/inovex/attractify/attractify-postgres
docker push ghcr.io/inovex/attractify/attractify-server