Keep infrastructure details out of the repository

The README, the publish script and the workflow named the tarball host, its
address and filesystem paths on the web host and the runner. Hosts and paths
now come only from repository variables, and the workflow shares the work
tree and the build cache through the named Docker volumes jasp-build and
jasp-cache instead of host paths. (The runner does not expand ${{ vars }} in
container.volumes, so a variable could not have replaced the host path there.)

Also drop the unused scripts/gen-tarball-index.py, and give each module build
its own process under a time limit: a module once spun for eight hours in
jaspModuleTools' bundling step and stalled the whole build.

Claude-Session: https://claude.ai/code/session_01GGe7kUhooMFuzY6GaDb2w9
This commit is contained in:
agw
2026-10-01 17:05:00 +02:00
parent e8c3d775aa
commit aa08dc108e
6 changed files with 45 additions and 227 deletions
+7 -7
View File
@@ -2,16 +2,16 @@
# Publish the built tarball to asger.weirsoe.dk, which is what the AUR PKGBUILD
# downloads from.
#
# TARBALL_SSH_KEY private key authorised on the web host (required)
# TARBALL_HOST web host, e.g. 192.168.10.148 (required)
# TARBALL_PATH directory on that host (required)
# TARBALL_SSH_KEY private key authorised on the web host (required)
# TARBALL_HOST web host to upload to over SSH (required)
# TARBALL_PATH directory on that host (required)
# KEEP_RELEASES how many tarballs to retain (default 3)
# $1 path to the tarball to upload
#
# The files live in /srv/tarballz, deliberately NOT under /var/www/asger: the
# asger-web deploy replaces that directory atomically (build into .new, swap,
# delete .old), so anything stored inside it disappears on the next site deploy.
# nginx exposes /srv/tarballz via a `location /tarballz/` alias.
# TARBALL_PATH is deliberately outside the website's own web root: the site
# deploy replaces its web root atomically, so anything stored inside it would
# disappear on the next deploy. The web server publishes the directory through
# a separate /tarballz/ location.
set -euo pipefail