def label = "update-route53.$BUILD_NUMBER-pipeline" podTemplate(yaml: ''' kind: Pod spec: containers: - name: kaniko image: gcr.io/kaniko-project/executor:v1.9.1 imagePullPolicy: Always command: - '/busyboxy/cat' volumeMounts: - name: docker-config mountPath: /kaniko/.docker/ dnsPolicy: "None" dnsConfig: nameservers: - 10.42.42.239 - 10.42.42.1 searches: - default.svc.cluster.local - svc.cluster.local - cluster.local options: - name: ndots value: "2" - name: edns0 - name: trust-ad volumeMounts: - name: docker-cfg mountPath: /kaniko/.docker volumes: - name: docker-config secret: secretName: docker-regcred items: - key: .dockerconfigjson path: config.json ''' ) { node(POD_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' } } } }