api build & release
parent
1b25e91cae
commit
f04a9e130d
|
@ -47,6 +47,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "api", "api", "{C5096F61-731
|
|||
ProjectSection(SolutionItems) = preProject
|
||||
build-amd64.sh = build-amd64.sh
|
||||
build-arm32v7.sh = build-arm32v7.sh
|
||||
release.sh = release.sh
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
echo "Welcome!"
|
||||
|
||||
version="1.0.1"
|
||||
version="1.0.2"
|
||||
localRegistryPass="***REMOVED***"
|
||||
|
||||
echo "Create docker image with version $version."
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
echo "Welcome!"
|
||||
|
||||
version="1.0.2"
|
||||
oldver="1.0.1"
|
||||
|
||||
echo "Pull docker image network-resurrector-api:$version from registry."
|
||||
docker pull alpine-nexus:8500/network-resurrector/network-resurrector-api:$version
|
||||
|
||||
echo "Stop old container."
|
||||
docker stop network-resurrector-api && docker rm network-resurrector-api
|
||||
|
||||
echo "Run new container."
|
||||
docker run -d --name network-resurrector-api --restart=always -p 5008:80 alpine-nexus:8500/network-resurrector/network-resurrector-api:$version
|
||||
|
||||
echo "Remove old image network-resurrector-api:$oldver."
|
||||
docker rmi alpine-nexus:8500/network-resurrector/network-resurrector-api:$oldver
|
||||
|
||||
echo "Get container logs:"
|
||||
docker logs network-resurrector-api
|
||||
|
||||
echo "DONE!"
|
Loading…
Reference in New Issue