diff --git a/vars/dockerDeploy.groovy b/vars/dockerDeploy.groovy index 33eb1f7..616f5bd 100644 --- a/vars/dockerDeploy.groovy +++ b/vars/dockerDeploy.groovy @@ -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-compose push' - sh 'docker stack deploy --with-registry-auth --prune --compose-file docker-compose.yml $PROJECT_NAME' - } + sh 'docker-compose build --parallel' + 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' }