DRONE_GITEA_SKIP_VERIFY not taking effects?

I am trying to set up the Drone server on Kubernetes with the docker image: 1.10.1 and Gitea. The Gitea server has a self-signed certificate. Though I followed the instruction on https://docs.drone.io/server/reference/drone-gitea-skip-verify/ and set DRONE_GITEA_SKIP_VERIFY=true, I am getting SSL certificate error at builds:

fatal: unable to access ‘…’: SSL certificate problem: unable to get local issuer certificate

What could be wrong? Is there a bug with this setting option?

DRONE_GITEA_SKIP_VERIFY disables ssl verification of API communications between the Drone server and Gitea server, however, this does not disable ssl verification for cloning. If you need to disable ssl verification for cloning, you would add the below configuration to your yaml:

kind: pipeline
type: kubernetes
name: default

  skip_verify: true

steps: ...

Thank you @bradrydzewski for the support. It works. It is just horrible to continue working with self-signed certificates and private repos in addition… Sorry, just complaining to myself…