Guest User

Untitled

a guest
Dec 17th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. pipeline {
  2. agent {
  3. kubernetes {
  4. label 'dind'
  5. containerTemplate {
  6. name 'dind'
  7. image 'docker:dind'
  8. ttyEnabled true
  9. privileged true
  10. command 'dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay'
  11. }
  12. }
  13. }
  14.  
  15. environment {
  16. REGISTRY_USER = credentials('REGISTRY_USER')
  17. REGISTRY_PASSWORD = credentials('REGISTRY_PASSWORD')
  18. }
  19.  
  20. stages {
  21. stage('Login to DockerHub') {
  22. steps {
  23. sh('./ci-scripts/login_to_dockerhub.sh')
  24. }
  25. }
  26. stage('Build Docker image') {
  27. steps {
  28. sh('./ci-scripts/build.sh')
  29. }
  30. }
  31. }
  32. }
Add Comment
Please, Sign In to add comment