Jenkinsfile 726 B

123456789101112131415161718192021
  1. def label = "$JOB_NAME.$BUILD_NUMBER-pipeline"
  2. podTemplate(label: label, containers: [
  3. containerTemplate(name: 'kaniko', image: 'gcr.io/kaniko-project/executor:debug', command: '/busybox/cat', ttyEnabled: true)
  4. ],
  5. volumes: [
  6. secretVolume(mountPath: '/kaniko/.docker/', secretName: 'kaniko-secret')
  7. ]) {
  8. node(label) {
  9. stage('Stage 1: Build with Kaniko') {
  10. container('kaniko') {
  11. sh '/kaniko/executor --context="git://git.monkeybox.org/Containers/$JOB_NAME#refs/heads/main" \
  12. --destination="fdamstra/$JOB_NAME:latest" \
  13. --destination="fdamstra/$JOB_NAME:$BUILD_NUMBER" \
  14. --insecure \
  15. --skip-tls-verify \
  16. -v=debug'
  17. }
  18. }
  19. }
  20. }