-
Notifications
You must be signed in to change notification settings - Fork 2
/
build_docker_images.sh
executable file
·30 lines (26 loc) · 1.61 KB
/
build_docker_images.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
#!/bin/bash
VERSION=${1-latest}
echo "Building docker images version $VERSION"
docker build -t emviwiki-auth -f auth/Dockerfile .
docker build -t emviwiki-backend -f backend/Dockerfile .
docker build -t emviwiki-batch -f batch/Dockerfile .
docker build -t emviwiki-collab -f collab/Dockerfile .
docker build -t emviwiki-dashboard -f dashboard/Dockerfile .
docker build -t emviwiki-frontend -f frontend/Dockerfile .
docker build -t emviwiki-website -f website/Dockerfile .
echo "Tagging docker images version $VERSION"
docker tag emviwiki-auth "registry.emvi-integration.com/emviwiki-auth:$VERSION"
docker tag emviwiki-backend "registry.emvi-integration.com/emviwiki-backend:$VERSION"
docker tag emviwiki-batch "registry.emvi-integration.com/emviwiki-batch:$VERSION"
docker tag emviwiki-collab "registry.emvi-integration.com/emviwiki-collab:$VERSION"
docker tag emviwiki-dashboard "registry.emvi-integration.com/emviwiki-dashboard:$VERSION"
docker tag emviwiki-frontend "registry.emvi-integration.com/emviwiki-frontend:$VERSION"
docker tag emviwiki-website "registry.emvi-integration.com/emviwiki-website:$VERSION"
echo "Pushing docker images version $VERSION"
docker push "registry.emvi-integration.com/emviwiki-auth:$VERSION"
docker push "registry.emvi-integration.com/emviwiki-backend:$VERSION"
docker push "registry.emvi-integration.com/emviwiki-batch:$VERSION"
docker push "registry.emvi-integration.com/emviwiki-collab:$VERSION"
docker push "registry.emvi-integration.com/emviwiki-dashboard:$VERSION"
docker push "registry.emvi-integration.com/emviwiki-frontend:$VERSION"
docker push "registry.emvi-integration.com/emviwiki-website:$VERSION"