a9b3354bde
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>
23 lines
493 B
YAML
23 lines
493 B
YAML
name: Deploy to Production
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: [self-hosted, host]
|
|
timeout-minutes: 20
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
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)
|
|
run: bash scripts/deploy-bluegreen.sh
|