-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-logcondense.sh
More file actions
executable file
·24 lines (19 loc) · 1008 Bytes
/
build-logcondense.sh
File metadata and controls
executable file
·24 lines (19 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
source .env
echo "building shebanq_logcondense docker images from local folder; tagging as docker shebanq_logcondense:${dockertag}...."
docker build --platform linux/amd64 -f Dockerfile-logcondense -t shebanq_logcondense:${dockertag} .
if [ "$?" == "0" ]; then
echo "docker images completed ...."
docker images | grep shebanq_logcondense:${dockertag}
else
echo "docker image building failed!"
exit 1
fi
sleep 3
echo "If login fails, go to registry.diginfra.net and log in and then run this script again"
docker login registry.diginfra.net
docker tag shebanq_logcondense:${dockertag} registry.diginfra.net/shebanq/shebanq_logcondense:${dockertag}
docker tag shebanq_logcondense:${dockertag} registry.diginfra.net/shebanq/shebanq_logcondense:latest
docker images | grep registry.diginfra.net/shebanq/shebanq_logcondense:${dockertag}
docker push registry.diginfra.net/shebanq/shebanq_logcondense:${dockertag}
docker push registry.diginfra.net/shebanq/shebanq_logcondense:latest