refactor: migrate to Forgejo workflows, remove GitHub Actions
Some checks failed
Deploy LLM Service / deploy (push) Failing after 8s
Some checks failed
Deploy LLM Service / deploy (push) Failing after 8s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
65e9fdf45b
commit
3864bce3d5
1 changed files with 16 additions and 14 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
name: Deploy to Infomaniak
|
name: Deploy LLM Service
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup SSH
|
- name: Setup SSH
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -27,12 +27,16 @@ jobs:
|
||||||
chmod 600 ~/.ssh/deploy_key
|
chmod 600 ~/.ssh/deploy_key
|
||||||
ssh-keyscan -H ${{ env.SERVER_HOST }} >> ~/.ssh/known_hosts
|
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
|
- name: Deploy files to server
|
||||||
run: |
|
run: |
|
||||||
rsync -avz --delete \
|
rsync -avz --delete \
|
||||||
-e "ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no" \
|
-e "ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no" \
|
||||||
--exclude '.git' \
|
--exclude '.git' \
|
||||||
--exclude '.github' \
|
--exclude '.forgejo' \
|
||||||
--exclude '__pycache__' \
|
--exclude '__pycache__' \
|
||||||
--exclude '*.pyc' \
|
--exclude '*.pyc' \
|
||||||
--exclude 'venv' \
|
--exclude 'venv' \
|
||||||
|
|
@ -70,7 +74,6 @@ jobs:
|
||||||
echo "Running health check..."
|
echo "Running health check..."
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
# Health check via HTTPS on port 8000
|
|
||||||
HTTP_STATUS=$(curl -sk -o /dev/null -w "%{http_code}" \
|
HTTP_STATUS=$(curl -sk -o /dev/null -w "%{http_code}" \
|
||||||
https://llm.poweron.swiss:8000/api/health || echo "000")
|
https://llm.poweron.swiss:8000/api/health || echo "000")
|
||||||
|
|
||||||
|
|
@ -79,7 +82,6 @@ jobs:
|
||||||
else
|
else
|
||||||
echo "Health check failed! (HTTP $HTTP_STATUS)"
|
echo "Health check failed! (HTTP $HTTP_STATUS)"
|
||||||
echo "Note: SSL certificate must be installed on server first"
|
echo "Note: SSL certificate must be installed on server first"
|
||||||
# Don't fail deployment if health check fails (cert might not be ready)
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Deployment Summary
|
- name: Deployment Summary
|
||||||
Loading…
Reference in a new issue