add deploy.sh
This commit is contained in:
parent
c3512ce74a
commit
be1cb55dd2
23
deploy.sh
Normal file
23
deploy.sh
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Setze die Docker-Compose-Datei
|
||||||
|
COMPOSE_FILE="/home/martin/docker/apps/Kunst_Gegen_Bares_Kimaschine/docker-compose.yml"
|
||||||
|
|
||||||
|
|
||||||
|
# Docker-Container herunterfahren
|
||||||
|
echo "🛑 Stopping Docker containers..."
|
||||||
|
docker-compose -f $COMPOSE_FILE down --remove-orphans
|
||||||
|
|
||||||
|
# Git-Pull mit Benutzername und Passwort
|
||||||
|
echo "📂 Pulling latest changes from Git..."
|
||||||
|
git pull
|
||||||
|
|
||||||
|
# Docker-Image neu bauen
|
||||||
|
echo "🔨 Rebuilding Docker image without cache..."
|
||||||
|
docker-compose -f $COMPOSE_FILE build --no-cache
|
||||||
|
|
||||||
|
# Docker-Container wieder hochfahren
|
||||||
|
echo "🚀 Starting Docker containers..."
|
||||||
|
docker-compose -f $COMPOSE_FILE up -d
|
||||||
|
|
||||||
|
echo "✅ Workflow completed!"
|
||||||
Loading…
x
Reference in New Issue
Block a user