ci: self-bootstrap repo (clone-if-absent) on fresh hosts #5

Merged
enricobuehler merged 1 commits from deploy-autoclone into main 2026-06-05 00:28:49 +00:00
+1
View File
@@ -144,6 +144,7 @@ jobs:
envs: GAME_ID envs: GAME_ID
script: | script: |
docker login git.unom.io -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }} 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} cd ~/${GAME_ID}
git fetch origin main git fetch origin main
git reset --hard origin/main git reset --hard origin/main