-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
executable file
·40 lines (39 loc) · 1.24 KB
/
build.sh
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
#!/bin/bash
sudo docker buildx build --push --tag ghcr.io/boyism80/fb/build:latest -f Dockerfile .
if [ $? -ne 0 ]; then
echo "build fb/build failed"
exit $?
fi
sudo docker buildx build --push --tag ghcr.io/boyism80/fb/gateway:latest -f gateway/Dockerfile .
if [ $? -ne 0 ]; then
echo "build fb/gateway failed"
exit $?
fi
sudo docker buildx build --push --tag ghcr.io/boyism80/fb/login:latest -f login/Dockerfile .
if [ $? -ne 0 ]; then
echo "build fb/login failed"
exit $?
fi
sudo docker buildx build --push --tag ghcr.io/boyism80/fb/game:latest -f game/Dockerfile .
if [ $? -ne 0 ]; then
echo "build fb/game failed"
exit $?
fi
sudo docker buildx build --push --tag ghcr.io/boyism80/fb/bot:latest -f bot/Dockerfile .
if [ $? -ne 0 ]; then
echo "build fb/bot failed"
exit $?
fi
sudo docker buildx build --push --tag ghcr.io/boyism80/fb/internal:latest -f http/Dockerfile --build-arg SERVICE=internal .
if [ $? -ne 0 ]; then
echo "build fb/internal failed"
exit $?
fi
sudo docker buildx build --push --tag ghcr.io/boyism80/fb/write-back:latest -f http/Dockerfile --build-arg SERVICE=write-back .
if [ $? -ne 0 ]; then
echo "build fb/write-back failed"
exit $?
fi
pushd infra/pulumi
pulumi down -y && pulumi up -y
popd