Correct destination of nomad-ca.crt template to be inside NOMAD_SECRETS_DIR

This commit is contained in:
Jan-Eric Hellenberg
2021-07-29 15:41:06 +02:00
committed by Jan-Eric Hellenberg
parent 8fcb5f3581
commit 3c2e85ed4a
2 changed files with 9 additions and 3 deletions

View File

@@ -147,6 +147,7 @@ test_e2e:
- export NOMAD_NAMESPACE="$NOMAD_SLUG"
- nomad namespace apply $NOMAD_NAMESPACE
script:
- export NOMAD_CACERT_DATA=$(cat $NOMAD_CACERT)
# Only replace set env vars
- envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < deploy/api.tpl.nomad > deploy/api.nomad
# Make sure to set NOMAD_ADDR, NOMAD_SKIP_VERIFY and NOMAD_TOKEN env vars in CI settings appropriately