Code fixes

This commit is contained in:
Juan Ferrer 2020-01-31 21:27:10 +01:00
parent 4edd93b85e
commit 3f9cc19944
1 changed files with 4 additions and 9 deletions

View File

@ -1,13 +1,8 @@
#!/usr/bin/env groovy
def call() {
environment {
CREDS = credentials('docker-registry')
}
steps {
sh 'docker-compose build --parallel'
sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
sh 'docker-compose push'
sh 'docker stack deploy --with-registry-auth --prune --compose-file docker-compose.yml $PROJECT_NAME'
}
}