Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- agent {
- kubernetes {
- label 'dind'
- containerTemplate {
- name 'dind'
- image 'docker:dind'
- ttyEnabled true
- privileged true
- command 'dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay'
- }
- }
- }
- environment {
- REGISTRY_USER = credentials('REGISTRY_USER')
- REGISTRY_PASSWORD = credentials('REGISTRY_PASSWORD')
- }
- stages {
- stage('Login to DockerHub') {
- steps {
- sh('./ci-scripts/login_to_dockerhub.sh')
- }
- }
- stage('Build Docker image') {
- steps {
- sh('./ci-scripts/build.sh')
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment