tuitio/release.sh

22 lines
598 B
Bash
Raw Normal View History

2021-11-12 19:12:40 +02:00
#!/bin/sh
echo "Welcome!"
2021-11-13 21:54:08 +02:00
version="1.0.1"
2021-11-12 19:12:40 +02:00
oldver="1.0.0"
echo "Pull docker image identity-server:$version from registry."
docker pull alpine-nexus:8500/identity/identity-server:$version
echo "Stop old container."
docker stop identity-server && docker rm identity-server
echo "Run new container."
2021-11-13 14:53:19 +02:00
docker run -d --name identity-server --restart=always -p 5007:80 alpine-nexus:8500/identity/identity-server:$version
2021-11-12 19:12:40 +02:00
echo "Remove old image identity-server:$oldver."
docker rmi alpine-nexus:8500/identity/identity-server:$oldver
echo "Get container logs:"
docker logs identity-server
echo "DONE!"