fix: use shell-based checkout for self-hosted runner
Build & Deploy Tippspiel / build (push) Has been cancelled

actions/checkout@v4 needs Node.js which isn't available in host mode.
Use git clone directly instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ronny
2026-04-06 10:09:33 +02:00
parent 832a3d3677
commit 41a21b5606
+7 -5
View File
@@ -9,12 +9,14 @@ jobs:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
run: |
rm -rf workspace && mkdir workspace
git clone --depth 1 --branch main http://gitea:3000/mwf975_git/tippspiel.git workspace
- name: Build Docker Image
run: |
docker build -t wm2026-tippspiel:latest -t wm2026-tippspiel:${{ gitea.sha }} .
cd workspace
docker build -t wm2026-tippspiel:latest -t wm2026-tippspiel:${GITHUB_SHA:-latest} .
- name: Restart Container
run: |
docker compose -f /tmp/tippspiel-compose.yml up -d --force-recreate 2>/dev/null || echo "Stack not yet deployed via Portainer"
- name: Cleanup
run: rm -rf workspace