Swarm stack deploy removed
gitea/docker-discover/pipeline/head This commit looks good
Details
gitea/docker-discover/pipeline/head This commit looks good
Details
This commit is contained in:
parent
7a91807723
commit
9304ca09d4
|
@ -19,7 +19,9 @@ pipeline {
|
||||||
CREDENTIALS = credentials('docker-registry')
|
CREDENTIALS = credentials('docker-registry')
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
dockerDeploy()
|
sh 'docker-compose build --parallel'
|
||||||
|
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
||||||
|
sh 'docker-compose push'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,28 +5,3 @@ services:
|
||||||
build: .
|
build: .
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
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:
|
|
||||||
|
|
Reference in New Issue