Swarm stack deploy removed
gitea/docker-discover/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2021-04-27 16:34:01 +02:00
parent 7a91807723
commit 9304ca09d4
2 changed files with 3 additions and 26 deletions

4
Jenkinsfile vendored
View File

@ -19,7 +19,9 @@ pipeline {
CREDENTIALS = credentials('docker-registry')
}
steps {
dockerDeploy()
sh 'docker-compose build --parallel'
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
sh 'docker-compose push'
}
}
}

View File

@ -5,28 +5,3 @@ services:
build: .
environment:
NODE_ENV: production
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- data:/tmp/docker-discover
configs:
- source: config
target: /docker-discover/config.yml
- source: template
target: /docker-discover/rproxy.handlebars
- source: ssh
target: /root/.ssh/id_rsa
deploy:
mode: replicated
replicas: 1
configs:
config:
external: true
name: discover_config
template:
external: true
name: discover_template
ssh:
external: true
name: discover_ssh
volumes:
data: