浏览代码

Build automation test

Fred Damstra (k8s1) 2 年之前
父节点
当前提交
1faa15c6a5
共有 1 个文件被更改,包括 20 次插入0 次删除
  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'
+     }
+   }
+ }
+}