ci: fix deployment working directory to httpdocs
All checks were successful
Deploy Portfolio to VPS / deploy (push) Successful in 26s
All checks were successful
Deploy Portfolio to VPS / deploy (push) Successful in 26s
This commit is contained in:
parent
d8ee49ec1e
commit
ed1d2f9bb1
1 changed files with 6 additions and 6 deletions
|
|
@ -18,16 +18,16 @@ jobs:
|
||||||
port: ${{ secrets.VPS_PORT }}
|
port: ${{ secrets.VPS_PORT }}
|
||||||
script_stop: true
|
script_stop: true
|
||||||
script: |
|
script: |
|
||||||
echo "🚀 Deployment gestartet..."
|
echo "Starting deployment..."
|
||||||
cd /opt/containers/frontend
|
cd /opt/containers/frontend/httpdocs
|
||||||
|
|
||||||
echo "📥 Hole neuesten Code..."
|
echo "Pulling latest code..."
|
||||||
git pull origin main
|
git pull origin main
|
||||||
|
|
||||||
echo "🏗️ Baue Docker Image neu..."
|
echo "Rebuilding Docker containers..."
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
|
|
||||||
echo "🧹 Alte Docker Images aufräumen..."
|
echo "Cleaning up unused Docker images..."
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
|
|
||||||
echo "✅ Deployment erfolgreich abgeschlossen!"
|
echo "Deployment completed successfully."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue