podTemplate(yaml: """
kind: Pod
spec:
  containers:
  - name: kaniko
    image: gcr.io/kaniko-project/executor:debug
    imagePullPolicy: Always
    command:
    - /busybox/cat
	volumeMounts:
	- name: certs
	  mountPath: /kaniko/ssl/certs
    tty: true
  volumes:
    - name: certs
      configMap:
      name: docker-cert
"""
  ) {

    node(POD_LABEL) {
        stage('Git') {
            git url: 'https://gyulai.cloud/git/bme/covidok-backend.git',
			    credentialsId: '1b1c30a0-590d-41d4-b775-bdb90e837bc8'
            container('kaniko') {
                stage('Build and publish dev Docker image') {
                    sh '/kaniko/executor --dockerfile=/home/jenkins/agent/workspace/gitea-bme_covidok-backend_master/CoviDok/Dockerfile.CI -c /home/jenkins/agent/workspace --destination=docker.local/bme/covidok'
                }
            }
        }
    }
}