jdsjkdjk
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user