refactor: migrate to Forgejo workflows, remove GitHub Actions
Some checks failed
Deploy LLM Service / deploy (push) Failing after 8s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ValueOn AG 2026-05-24 02:34:20 +02:00
parent 65e9fdf45b
commit 3864bce3d5

View file

@ -1,4 +1,4 @@
name: Deploy to Infomaniak
name: Deploy LLM Service
on:
push:
@ -18,7 +18,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v4
- name: Setup SSH
run: |
@ -27,12 +27,16 @@ jobs:
chmod 600 ~/.ssh/deploy_key
ssh-keyscan -H ${{ env.SERVER_HOST }} >> ~/.ssh/known_hosts
- name: Install rsync
run: |
DEBIAN_FRONTEND=noninteractive apt-get update -qq && apt-get install -y -qq rsync > /dev/null
- name: Deploy files to server
run: |
rsync -avz --delete \
-e "ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no" \
--exclude '.git' \
--exclude '.github' \
--exclude '.forgejo' \
--exclude '__pycache__' \
--exclude '*.pyc' \
--exclude 'venv' \
@ -70,7 +74,6 @@ jobs:
echo "Running health check..."
sleep 3
# Health check via HTTPS on port 8000
HTTP_STATUS=$(curl -sk -o /dev/null -w "%{http_code}" \
https://llm.poweron.swiss:8000/api/health || echo "000")
@ -79,7 +82,6 @@ jobs:
else
echo "Health check failed! (HTTP $HTTP_STATUS)"
echo "Note: SSL certificate must be installed on server first"
# Don't fail deployment if health check fails (cert might not be ready)
fi
- name: Deployment Summary