ci: self-bootstrap repo (clone-if-absent) on fresh hosts #5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user