fix(ci): replace checkout action with git clone (no node on host runner)
Deploy to Production / deploy (push) Failing after 1m44s

actions/checkout@v3 is a JavaScript action requiring node in PATH.
Host runners have no node. Replace with direct git clone/fetch.

Co-Authored-By: Mira <noreply@anthropic.com>
This commit is contained in:
Carsten Rehfeld
2026-05-14 15:40:08 +02:00
parent 82f0ac6007
commit a9b3354bde
+9 -4
View File
@@ -7,11 +7,16 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: [self-hosted, host] runs-on: [self-hosted, host]
timeout-minutes: 15 timeout-minutes: 20
steps: steps:
- uses: actions/checkout@v3 - name: Checkout
with: run: |
fetch-depth: 1 if [ -d .git ]; then
git fetch --depth=1 origin main
git reset --hard FETCH_HEAD
else
git clone --depth=1 http://localhost:3001/apix/apix-mvp.git .
fi
- name: Deploy (rolling zero-downtime) - name: Deploy (rolling zero-downtime)
run: bash scripts/deploy-bluegreen.sh run: bash scripts/deploy-bluegreen.sh