From b10c249b464678a798356b8cf9cfd60637caba21 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Fri, 5 Jun 2026 02:18:39 +0200 Subject: [PATCH] ci: self-bootstrap repo (clone-if-absent) on fresh hosts Deploy assumed the repo was pre-cloned at ~/; clone it over HTTPS+token if absent so a brand-new host self-assembles. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/build-deploy-game.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/build-deploy-game.yml b/.gitea/workflows/build-deploy-game.yml index ab2d99a..bddd894 100644 --- a/.gitea/workflows/build-deploy-game.yml +++ b/.gitea/workflows/build-deploy-game.yml @@ -144,6 +144,7 @@ jobs: envs: GAME_ID script: | docker login git.unom.io -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }} + [ -d ~/${GAME_ID}/.git ] || git clone "https://${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_TOKEN }}@git.unom.io/played/${GAME_ID}.git" ~/${GAME_ID} cd ~/${GAME_ID} git fetch origin main git reset --hard origin/main -- 2.52.0