'How to use git context in kaniko without https

My yaml looks like

apiVersion: v1
kind: Pod
metadata:
  name: kaniko
spec:
  containers:
  - name: kaniko
    image: gcr.io/kaniko-project/executor:debug
    args: ["--context=git://git@gitea...:32222...",
            "--destination=...",
            "--skip-tls-verify",
            "--insecure-pull",
            "--verbosity=debug",
            "--insecure-registry=gitea..."]          
  restartPolicy: Never

we have private gitea without https

When kaniko tried to pull git there is error:

DEBU[0000] Getting source context from git://git@...:32222/... 
DEBU[0000] Getting source from reference                
Error: error resolving source context: Get "https://git@gitea...:32222/.../info/refs?service=git-upload-pack": tls: first record does not look like a TLS handshake

How I can supress https ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source