From a09b11256b1ad540d6606912dab82a992f74b130 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sun, 22 Dec 2024 09:00:02 +0100 Subject: 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. --- acid.yaml.example | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'acid.yaml.example') 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. -- cgit v1.2.3-70-g09d2