From 9304ca09d4d4505e6a5b48d4b1bd1634cc26ec9e Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Tue, 27 Apr 2021 16:34:01 +0200 Subject: [PATCH] Swarm stack deploy removed --- Jenkinsfile | 4 +++- docker-compose.yml | 25 ------------------------- 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2cea152..a0dd066 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } } diff --git a/docker-compose.yml b/docker-compose.yml index 8a43d76..acc94a5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: