diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-12-22 09:00:02 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-12-23 14:35:46 +0100 |
commit | a09b11256b1ad540d6606912dab82a992f74b130 (patch) | |
tree | 9a91e97fe321f49435600b3466894d8e7efbc90d /acid.adoc | |
parent | bd130537736d74d8d77080d9876767981df759d9 (diff) | |
download | acid-a09b11256b1ad540d6606912dab82a992f74b130.tar.gz acid-a09b11256b1ad540d6606912dab82a992f74b130.tar.xz acid-a09b11256b1ad540d6606912dab82a992f74b130.zip |
Clean up, add a deployment stage
Errors should be handled a bit more nicely now.
The SFTP part could also be done from deploy scripts like:
scp -i {runner.ssh.identity} \
-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \
{runner.ssh.user}@{runner.ssh.address%:*} -p {runner.ssh.address#*:}
but that is deemed way too annoying, so we do it from Go.
Diffstat (limited to 'acid.adoc')
-rw-r--r-- | acid.adoc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -45,7 +45,7 @@ file present in the distribution. All paths are currently relative to the directory you launch *acid* from. -The *notify*, *setup*, and *build* scripts are processed using Go's +The *notify*, *setup*, *build*, and *deploy* scripts are processed using Go's _text/template_ package, and take an object describing the task, which has the following fields: @@ -79,7 +79,8 @@ in *sh*(1) command arguments. Runners ------- -Runners receive the following additional environment variables: +Runners and deploy scripts receive the following additional +environment variables: *ACID_ROOT*:: The same as the base directory for configuration. *ACID_RUNNER*:: The same as *Runner* in script templates. |