-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-tag-and-push.sh
executable file
·35 lines (30 loc) · 1.19 KB
/
build-tag-and-push.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
#!/usr/bin/env bash
set -e -m
if [[ "${1}" == "xvfb" ]] || [[ "${1}" == "" ]]; then
docker build --progress plain --platform=linux/amd64 \
-t kube-registry:5000/eds-game-for-ftp-game-jam-2022-xvfb:latest \
-f xvfb/Dockerfile \
.
docker push kube-registry:5000/eds-game-for-ftp-game-jam-2022-xvfb:latest
fi
if [[ "${1}" == "server" ]] || [[ "${1}" == "" ]]; then
docker build --progress plain --platform=linux/amd64 \
-t kube-registry:5000/eds-game-for-ftp-game-jam-2022-server:latest \
-f server/Dockerfile \
.
docker push kube-registry:5000/eds-game-for-ftp-game-jam-2022-server:latest
fi
if [[ "${1}" == "client" ]] || [[ "${1}" == "" ]]; then
docker build --progress plain --platform=linux/amd64 \
-t kube-registry:5000/eds-game-for-ftp-game-jam-2022-client:latest \
-f client/Dockerfile \
.
docker push kube-registry:5000/eds-game-for-ftp-game-jam-2022-client:latest
fi
if [[ "${1}" == "proxy" ]] || [[ "${1}" == "" ]]; then
docker build --progress plain --platform=linux/amd64 \
-t kube-registry:5000/eds-game-for-ftp-game-jam-2022-proxy:latest \
-f proxy/Dockerfile \
.
docker push kube-registry:5000/eds-game-for-ftp-game-jam-2022-proxy:latest
fi