Browse Source

Build automation test

Fred Damstra (k8s1) 2 years ago
parent
commit
1faa15c6a5
1 changed files with 20 additions and 0 deletions
  1. 20 0
      Jenkinsfile

+ 20 - 0
Jenkinsfile

@@ -0,0 +1,20 @@
+def label = "update-route53.$BUILD_NUMBER-pipeline"
+ 
+podTemplate(label: label, containers: [
+ containerTemplate(name: 'kaniko', image: 'gcr.io/kaniko-project/executor:debug', command: '/busybox/cat', ttyEnabled: true)
+],
+volumes: [
+   secretVolume(mountPath: '/root/.docker/', secretName: 'kaniko-secret')
+]) {
+ node(label) {
+   stage('Stage 1: Build with Kaniko') {
+     container('kaniko') {
+       sh '/kaniko/executor --context="git://git.monkeybox.org/Containers/update-route53#refs/heads/main" \
+               --destination="fdamstra/update-route53:latest" \
+               --insecure \
+               --skip-tls-verify  \
+               -v=debug'
+     }
+   }
+ }
+}