Skip to content
Snippets Groups Projects
Commit 6495c0d4 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Stop trying to hit a specific directory with mktemp

Just use the configured temporary directory in the environment.  This is less
great but it's still okay because:

* It's our system
* The deploy key has limited capabilities
parent c0d604af
No related branches found
No related tags found
3 merge requests!140Merge staging into production,!125Merge develop into staging,!124Stop trying to hit a specific directory with mktemp
Pipeline #873 passed
......@@ -84,8 +84,7 @@ system-tests:
- |
# The environment variable is configured with GitLab using Terraform so
# we can retain some bare minimum level of confidentiality.
KEY_DIR="$(mktemp -d -p "${XDG_RUNTIME_DIR}-deploy_key")"
KEY_PATH="${KEY_DIR}/deploy_key"
KEY_PATH="$(mktemp -d)/deploy_key"
base64 --decode "${PRIVATESTORAGEIO_STAGING_SSH_DEPLOY_KEY}" > "${KEY_PATH}"
# Update the deployment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment