Files
Pickup-Config/startContainer.sh

25 lines
604 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 -euo pipefail
# Alle übergebenen Argumente als Commit-Message (oder Fallback)
if [[ $# -gt 0 ]]; then
MSG="$*"
else
MSG="Aktueller Stand"
fi
# Nur committen, wenn es Änderungen gibt
if [[ -n $(git status --porcelain) ]]; then
echo "📦 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!"