hotfix: always run compose up after build

This commit is contained in:
Christian 2026-05-04 22:34:16 +02:00
parent a37e0a89fa
commit 93da2866dc
3 changed files with 21 additions and 2 deletions

13
RELEASE_NOTES_v2.2.84.md Normal file
View File

@ -0,0 +1,13 @@
# Release Notes v2.2.84
Dato: 2026-05-04
## Hotfix
- Rettet logikfejl i `updateto.sh` hvor `podman-compose up -d` kunne blive sprunget over efter successfuld build.
- Scriptet bygger nu foerst, og starter derefter stacken i et separat trin med korrekt fejlhaandtering.
## Berorte filer
- `updateto.sh`
- `VERSION`

View File

@ -1 +1 @@
2.2.83 2.2.84

View File

@ -196,7 +196,13 @@ podman-compose -f "$PODMAN_COMPOSE_FILE" down
# Pull/rebuild with new version # Pull/rebuild with new version
echo "" echo ""
echo "🔨 Bygger nyt image med version $VERSION (--no-cache for at sikre ny kode fra Gitea)..." echo "🔨 Bygger nyt image med version $VERSION (--no-cache for at sikre ny kode fra Gitea)..."
if ! podman-compose -f "$PODMAN_COMPOSE_FILE" build --no-cache && podman-compose -f "$PODMAN_COMPOSE_FILE" up -d; then if ! podman-compose -f "$PODMAN_COMPOSE_FILE" build --no-cache; then
echo "❌ Fejl: podman-compose build fejlede"
echo " Tjek logs med: podman-compose -f $PODMAN_COMPOSE_FILE logs --tail=200"
exit 1
fi
if ! podman-compose -f "$PODMAN_COMPOSE_FILE" up -d; then
echo "❌ Fejl: podman-compose up fejlede" echo "❌ Fejl: podman-compose up fejlede"
echo " Tjek logs med: podman-compose -f $PODMAN_COMPOSE_FILE logs --tail=200" echo " Tjek logs med: podman-compose -f $PODMAN_COMPOSE_FILE logs --tail=200"
exit 1 exit 1