update.sh: ganzes Repository als Build-Kontext
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-10-19 18:36:00 +00:00
parent 367763f064
commit a3ab0c1d46

View File

@@ -17,7 +17,7 @@ echo "$umgebung: Update von $alt auf $version"
image=$(grep "^IMAGE=" .env | cut -d= -f2)
git fetch --tags origin
if ! docker image inspect "$image:$version" >/dev/null 2>&1; then
git archive "v$version" | docker build ${BUILD_OPTS:-} -t "$image:$version" --build-arg APP_VERSION="$version" -
git -C .. archive "v$version" | docker build ${BUILD_OPTS:-} -t "$image:$version" --build-arg APP_VERSION="$version" -
fi
# Bei der ersten Einrichtung läuft noch nichts, dann gibt es auch nichts zu sichern.
if [ -n "$(docker compose ps -q --status running "$backup")" ]; then