Commit fa2c4cc7 authored by Muhammad Bilal's avatar Muhammad Bilal
Browse files

Update Jenkinsfile

parent 84d4da6a
Showing with 6 additions and 4 deletions
+6 -4
......@@ -44,10 +44,12 @@ pipeline {
'''
}*/
steps {
sh '''
cat $HOME/.docker/config.json
//docker build -t dev .
'''
withCredentials([usernamePassword(credentialsId: 'docker-login', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
sh '''
docker login -u $USERNAME -p $PASSWORD registry.digitalocean.com
'''
}
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment