update.sh: ganzes Repository als Build-Kontext
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user