Files
Pickup-Config/startContainer.sh

27 lines
646 B
Bash
Executable File
Raw Permalink 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
# --- Commit Message bestimmen ---
if [[ $# -gt 0 ]]; then
MSG="$*"
elif [[ -f .commitmessage ]]; then
MSG="$(<.commitmessage)"
else
MSG="Aktueller Stand"
fi
# --- Git Commit & Push (nur bei Änderungen) ---
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
# --- Docker Compose Build & Up ---
echo "🐳 Starte Docker Compose Build & Up..."
DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker compose up --build -d pickup-config-app
echo "🚀 Fertig!"