aboutsummaryrefslogtreecommitdiff
path: root/acid.yaml.example
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-12-22 09:00:02 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-12-23 14:35:46 +0100
commita09b11256b1ad540d6606912dab82a992f74b130 (patch)
tree9a91e97fe321f49435600b3466894d8e7efbc90d /acid.yaml.example
parentbd130537736d74d8d77080d9876767981df759d9 (diff)
downloadacid-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.yaml.example')
-rw-r--r--acid.yaml.example8
1 files changed, 7 insertions, 1 deletions
diff --git a/acid.yaml.example b/acid.yaml.example
index 499366e..c0b9b28 100644
--- a/acid.yaml.example
+++ b/acid.yaml.example
@@ -61,7 +61,13 @@ projects:
# Project build script.
build: |
echo Computing line count...
- find . -not -path '*/.*' -type f -print0 | xargs -0 cat | wc -l
+ mkdir ~/acid-deploy
+ find . -not -path '*/.*' -type f -print0 | xargs -0 cat | wc -l \
+ > ~/acid-deploy/count
+
+ # Project deployment script (runs locally in a temporary directory).
+ deploy: |
+ cat count
# Time limit in time.ParseDuration format.
# The default of one hour should suffice.