aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Bradfield <bradfier@fstab.me>2019-01-24 11:56:08 +0000
committerDrew DeVault <sir@cmpwn.com>2019-01-24 08:26:44 -0500
commit212e170f6a1b977563bea80cbab8673aed68c5b9 (patch)
tree97a505ccd545b4ce6bde4d1f647987c829f65e41
parent10f7bc7fceb46f923e7392763a3502e020e1d422 (diff)
downloadsr.ht-docs-212e170f6a1b977563bea80cbab8673aed68c5b9.tar.gz
Notes about spaces in environment vars
Since quoted strings in a build manifest will have the quotes removed when parsed, environment variables which include spaces need to be quoted twice.
-rw-r--r--builds.sr.ht/manifest.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/builds.sr.ht/manifest.md b/builds.sr.ht/manifest.md
index 7dd6844..36a33bd 100644
--- a/builds.sr.ht/manifest.md
+++ b/builds.sr.ht/manifest.md
@@ -99,6 +99,14 @@ See also: [Build triggers](triggers.md)
A list of key/value pairs for options to set in the build environment via
`~/.buildenv`.
+Since the value will be parsed twice, once as YAML and once by `bash`,
+string literals containing spaces must be 'doubly quoted':
+
+```yaml
+environment:
+ GIT_SSH_COMMAND: '"ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"'
+```
+
## secrets
*list* (of *string*)