fix(ci): replace actions/checkout with git clone for Alpine compatibility

Alpine doesn't have Node.js by default, and actions/checkout requires it.
Using native git clone instead - simpler and KISS approach.
This commit is contained in:
2026-01-04 15:13:54 +00:00
parent eb0720d0b1
commit 97dbe32354

View File

@@ -22,14 +22,14 @@ jobs:
run: apk add --no-cache openssh-client git run: apk add --no-cache openssh-client git
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 run: |
git clone --depth 1 --branch main https://gitea.arnodo.fr/Damien/infra-scripts.git .
- name: Setup SSH key - name: Setup SSH key
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "${{ secrets.SEEDBOX_SSH_KEY }}" > ~/.ssh/id_ed25519 echo "${{ secrets.SEEDBOX_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519
# Trust the seedbox host
ssh-keyscan -H seedbox.taila5ad8.ts.net >> ~/.ssh/known_hosts 2>/dev/null || true ssh-keyscan -H seedbox.taila5ad8.ts.net >> ~/.ssh/known_hosts 2>/dev/null || true
- name: Validate compose files (PR only) - name: Validate compose files (PR only)