Quotes in Environment Variables



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:


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