Files
Pickup-Config/startContainer.sh
2025-11-09 15:49:07 +01:00

23 lines
560 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
set -e
# Optionaler erster Parameter als Git-Message
MSG="${1:-Aktueller Stand}"
# Prüfen, ob Änderungen vorhanden sind
if [[ -n $(git status --porcelain) ]]; then
echo "📦 Änderungen erkannt committe mit Nachricht: '$MSG'"
git add .
git commit -m "$MSG"
git push
else
echo "✅ Keine Änderungen überspringe Git-Commit."
fi
# Container neu bauen und starten
echo "🐳 Starte Docker Compose Build & Up..."
DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker compose up --build -d pickup-config-app
echo "🚀 Fertig!"