-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish-docker
executable file
·38 lines (27 loc) · 1.15 KB
/
publish-docker
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
#!/usr/bin/env bash
USERNAME=antonpegov
VERSION=0.0.1
# Users microservice
IMAGE=auditdb-users
docker build -f ./apps/users/Dockerfile --target production -t $USERNAME/$IMAGE:latest . && \
docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$VERSION && \
docker push $USERNAME/$IMAGE:latest && \
docker push $USERNAME/$IMAGE:$VERSION
# Auditors microservice
IMAGE=auditdb-auditors
docker build -f ./apps/auditors/Dockerfile --target production -t $USERNAME/$IMAGE:latest . && \
docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$VERSION && \
docker push $USERNAME/$IMAGE:latest && \
docker push $USERNAME/$IMAGE:$VERSION
# Projects microservice
IMAGE=auditdb-projects
docker build -f ./apps/projects/Dockerfile --target production -t $USERNAME/$IMAGE:latest . && \
docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$VERSION && \
docker push $USERNAME/$IMAGE:latest && \
docker push $USERNAME/$IMAGE:$VERSION
# Swagger web
IMAGE=auditdb-swagger
docker build -f ./swagger/Dockerfile -t $USERNAME/$IMAGE:latest . && \
docker tag $USERNAME/$IMAGE:latest $USERNAME/$IMAGE:$VERSION && \
docker push $USERNAME/$IMAGE:latest && \
docker push $USERNAME/$IMAGE:$VERSION