update portainer to 1.24.1-alpine

This commit is contained in:
2021-03-10 08:49:17 -05:00
parent 0d99b6129d
commit c42032774f

View File

@@ -15,12 +15,13 @@ node('docker') {
stage('deploy') { stage('deploy') {
dir(workdir) { dir(workdir) {
sh '''export DOCKER_HOST=dkhost:2376 sh '''export DOCKER_HOST=dkhost:2376
docker stack deploy -c docker-compose.yml dkui
if docker stack ls | grep dkui; then // if docker stack ls | grep dkui; then
docker service update dkui_app // docker service update --config-add docker-compose.yml dkui_app
else // else
docker stack deploy -c docker-compose.yml dkui // docker stack deploy -c docker-compose.yml dkui
fi''' // fi'''
} }
} }