ci: deploy www/ to /opt/www/lumbda on every master push

Resolves the www/whitepaper.pdf symlink to a real file before rsync
(deploy-www.sh preserves symlinks, which would land broken on the
proxy), writes version.json with the commit SHA, then calls
deploy-www.sh lumbda www via sudo. Runs on the proxy.uncloseai.com
runner, same pattern as cuppcb.com and the rest of the static fleet.
This commit is contained in:
russell@unturf.com 2026-04-19 13:49:40 -04:00
parent 94b29421ed
commit 39414d4174

16
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,16 @@
stages:
- deploy
# deploy-www.sh uses rsync -a (preserves symlinks). www/whitepaper.pdf is a
# symlink to ../whitepaper/lumbda-whitepaper.pdf inside the repo, which would
# land broken on the proxy. Resolve it to a real file before rsync'ing.
deploy:
stage: deploy
tags: ["proxy.uncloseai.com"]
script:
- cp -L www/whitepaper.pdf www/whitepaper.pdf.real
- mv www/whitepaper.pdf.real www/whitepaper.pdf
- echo "{\"commit\":\"$CI_COMMIT_SHA\",\"ref\":\"$CI_COMMIT_REF_NAME\"}" > www/version.json
- sudo /usr/local/bin/deploy-www.sh lumbda www
rules:
- if: '$CI_COMMIT_REF_NAME == "master"'