From 39414d4174f0dbb90fdc0b7a8c543daeb5689f6f Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Sun, 19 Apr 2026 13:49:40 -0400 Subject: [PATCH] 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. --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5678b35 --- /dev/null +++ b/.gitlab-ci.yml @@ -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"'