Quotes in Environment Variables

envars

#1

Trying to pass a secret into docker build, but it needs to be a valid JSON string.

For the life of me I can’t pass quotes through the Environment Variables config section, they just get stripped:
(edited for brevity)

{“github.com”} -> {github.com}
{“github.com”} -> {\github.com}
{""“githhub.com”""} -> {""“github.com”""}

Please help :frowning:


#2

Whenever I need to store more than basic ASCII characters in an environment variable, I would base64 encode it first. Then decode it during the build when you need it. You can see an example of how this is done from one of our sample projects: https://github.com/GoogleCloudPlatform/continuous-deployment-circle/blob/master/circle.yml#L25


#3