daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Dec 17th, 2018 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top