update gitea Jenkins file

add Jenkinsfile to sslproxy and add metrics.xai-corp.net.conf
This commit is contained in:
2018-10-28 22:53:46 -04:00
parent d8c685ccad
commit ce98660502
4 changed files with 39 additions and 19 deletions

View File

@@ -14,13 +14,10 @@ node('docker') {
stage('deploy') {
dir(workdir) {
sh '''export DOCKER_HOST=dkhost:2376
if docker stack ls | grep gitea; then
docker service update gitea_app
else
docker stack deploy -c docker-compose.yml gitea
fi'''
sh """
docker stack deploy --with-registry-auth --prune -c docker-compose.yml gitea
docker service update gitea_app
"""
}
}