pipeline {
  agent {
    docker 'ruby:2.5.1'
  }
  stages {
    stage('deploy') {
      steps {
        sh 'gem install bundler && bundle  install && cap production deploy'
      }
    }
  }
  environment {
    HOME = '/tmp'
  }
}