-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-push-images.sh
executable file
·44 lines (33 loc) · 1001 Bytes
/
docker-push-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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
VERSION=1.0_k8s
BASE=`pwd`
#echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_NAME" --password-stdin
echo ''
echo $BASE
echo ''
echo '--------------------------'
echo 'ARCH-GATEWAY BUILD'
echo '--------------------------'
docker tag arch-gateway:$VERSION $DOCKER_NAME/arch-gateway:$VERSION
echo ''
echo '--------------------------'
echo 'ARCH-USERS BUILD'
echo '--------------------------'
docker tag arch-users:$VERSION $DOCKER_NAME/arch-users:$VERSION
echo ''
echo '--------------------------'
echo 'ARCH-APP BUILD'
echo '--------------------------'
docker tag arch-app:$VERSION $DOCKER_NAME/arch-app:$VERSION
echo ''
echo '--------------------------'
echo 'ARCH-IAM BUILD'
echo '--------------------------'
docker tag arch-iam:$VERSION $DOCKER_NAME/arch-iam:$VERSION
echo ''
docker images
sleep 5
docker push $DOCKER_NAME/arch-gateway:$VERSION
docker push $DOCKER_NAME/arch-users:$VERSION
docker push $DOCKER_NAME/arch-app:$VERSION
docker push $DOCKER_NAME/arch-iam:$VERSION