hotfix: always run compose up after build
This commit is contained in:
parent
a37e0a89fa
commit
93da2866dc
13
RELEASE_NOTES_v2.2.84.md
Normal file
13
RELEASE_NOTES_v2.2.84.md
Normal 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`
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user