jdsjkdjk
Some checks failed
Build and Deploy / changes (push) Successful in 1s
Build and Deploy / deploy (push) Successful in 6s
Build and Deploy / deploy-lean (push) Has been cancelled

This commit is contained in:
2026-10-19 22:28:12 +02:00
parent 0f7c765d61
commit 097160a6cd
7 changed files with 92 additions and 25 deletions

View File

@@ -48,8 +48,7 @@ jobs:
echo "lean=$lean" >> "$GITHUB_OUTPUT"
echo "app=$app lean=$lean"
# The wiki app itself. Its deploy (`compose pull && up -d`) also pulls
# whatever mathew-lean:latest the registry holds — the lean job keeps it current.
# The wiki app itself — its deploy step never touches the lean service.
deploy:
runs-on: docker
needs: changes
@@ -91,13 +90,16 @@ jobs:
scp docker-compose.yml deploy@${{ secrets.DEPLOY_HOST }}:/var/www/app/
scp nginx.conf deploy@${{ secrets.DEPLOY_HOST }}:/var/www/app/nginx.conf
# Scoped to the services this job owns: never pulls/builds lean from
# here (that would need the lean tag or lean/ sources on the host).
# deploy-lean.yml owns the lean service's pull and up.
- name: Deploy
run: |
ssh deploy@${{ secrets.DEPLOY_HOST }} << 'EOF'
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.aranroig.com -u "${{ secrets.REGISTRY_USER }}" --password-stdin
cd /var/www/app/
docker compose pull
docker compose up -d --remove-orphans
docker compose pull nginx frontend backend
docker compose up -d frontend backend nginx
EOF
# The Lean editor (lean4web): multi-stage, heavy by nature (it fetches