-
Notifications
You must be signed in to change notification settings - Fork 0
/
pushImages.sh
30 lines (24 loc) · 1.48 KB
/
pushImages.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
if [ -n "$1" ]; then
VERSION=$1
else
echo -n "Enter version: "
read VERSION
fi
##Tag the images
# core
docker tag registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/core registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/core:$VERSION
echo "taged image: registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/core:$VERSION"
# reverseproxy
docker tag registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/fuseki registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/fuseki:$VERSION
echo "taged image: registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/fuseki:$VERSION"
# reverseproxy
docker tag registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/reverseproxy registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/reverseproxy:$VERSION
echo "taged image: registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/reverseproxy:$VERSION"
##Push the images
docker push registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/core:$VERSION
docker push registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/fuseki:$VERSION
docker push registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/reverseproxy:$VERSION
docker push registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/core:latest
docker push registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/fuseki:latest
docker push registry.gitlab.cc-asp.fraunhofer.de:4567/eis-ids/broker-open/reverseproxy:latest