Clean up, add a deployment stage
All checks were successful
Alpine 3.20 Success

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.
This commit is contained in:
2024-12-22 09:00:02 +01:00
parent bd13053773
commit a09b11256b
5 changed files with 517 additions and 202 deletions

View File

@@ -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.