chore: prep v2 self-hosting

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-16 15:36:21 +01:00
parent d7c6e88adc
commit 3158ebfbda
9 changed files with 152 additions and 29 deletions

View File

@@ -38,7 +38,13 @@ docker buildx create --name multi-arch-builder --use || true
build_image() {
local app=$1
local image_name="lindesvard/openpanel-$app"
local full_version="$image_name:$VERSION"
local full_version="$image_name:$VERSION-$PRERELEASE"
# Use apps/start/Dockerfile for dashboard app
local dockerfile="apps/$app/Dockerfile"
if [ "$app" = "dashboard" ]; then
dockerfile="apps/start/Dockerfile"
fi
if [ -n "$PRERELEASE" ]; then
echo "(pre-release) Building multi-architecture image for $full_version"
@@ -46,7 +52,7 @@ build_image() {
--platform linux/amd64,linux/arm64 \
-t "$full_version" \
--build-arg DATABASE_URL="postgresql://p@p:5432/p" \
-f "apps/$app/Dockerfile" \
-f "$dockerfile" \
--push \
.
else
@@ -56,7 +62,7 @@ build_image() {
-t "$full_version" \
-t "$image_name:latest" \
--build-arg DATABASE_URL="postgresql://p@p:5432/p" \
-f "apps/$app/Dockerfile" \
-f "$dockerfile" \
--push \
.
fi