DRONE_RUNNER_ENVIRON: escape URL

Hi,
I want to set the environment variable GOPROXY=https://my-athens-instance,direct in kubernetes like the following example:

env:

Here are two problems. As key value seperator is ‘:’ specified. The drone-runner thinks that the ‘:’ of the URL is a second seperator and throws an error, because he expect as next a ‘,’. This is the next problem, how can i specify that ‘,direct’ is also part of the environment variable GOPROXY?

I need a mechanism to escape the chars. In the documentation is nothing described.

https://docs.drone.io/runner/kubernetes/configuration/reference/drone-runner-environ/

See Setting global agent environment URL variables

1 Like