Fix production deployment: use pre-built images instead of local builds + handle git conflicts

This commit is contained in:
Stiftung Development
2025-09-15 23:21:05 +02:00
parent f4f7d26d36
commit 5ff7b7a3ed
2 changed files with 94 additions and 143 deletions

View File

@@ -195,9 +195,15 @@ jobs:
script: |
cd /opt/stiftung
# Stash any local changes to avoid conflicts
git stash push -m "Auto-stash before deployment $(date)"
# Pull latest changes using Personal Access Token
git pull https://$DEPLOY_TOKEN@github.com/remmerinio/stiftung-management-system.git main
# Backup current compose.yml
cp compose.yml compose.yml.backup
# Copy production docker compose file to the active compose.yml
cp deploy-production/docker-compose.prod.yml compose.yml