Fix production deployment: use pre-built images instead of local builds + handle git conflicts
This commit is contained in:
6
.github/workflows/ci-cd.yml
vendored
6
.github/workflows/ci-cd.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user