-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-all.sh
executable file
·21 lines (15 loc) · 1.04 KB
/
build-all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
VERSION=1.0.4-$(date +%s)
echo "Building all Images with version: ${VERSION}"
docker build -t benjaminslabbert/grpc-linkerd-k8s-example-gateway-client:${VERSION} -f apps/gateway/client/Dockerfile .
docker build -t benjaminslabbert/grpc-linkerd-k8s-example-gateway-server:${VERSION} -f apps/gateway/server/Dockerfile .
docker build -t benjaminslabbert/grpc-linkerd-k8s-example-grpc-client:${VERSION} -f apps/grpc/client/Dockerfile .
docker build -t benjaminslabbert/grpc-linkerd-k8s-example-grpc-server:${VERSION} -f apps/grpc/server/Dockerfile .
echo "#########################"
echo "# Pushing to Docker hub #"
echo "#########################"
echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_USERNAME" --password-stdin
docker push benjaminslabbert/grpc-linkerd-k8s-example-gateway-client:${VERSION}
docker push benjaminslabbert/grpc-linkerd-k8s-example-gateway-server:${VERSION}
docker push benjaminslabbert/grpc-linkerd-k8s-example-grpc-client:${VERSION}
docker push benjaminslabbert/grpc-linkerd-k8s-example-grpc-server:${VERSION}