Fix production deployment for public site routing
Build & Push / Build & Push Docker Image (push) Failing after 3m35s

- pass `NEXT_PUBLIC_CARPLACE_URL` into the production Docker build
- keep `NEXT_PUBLIC_STOREFRONT_URL` as a backward-compatible fallback
- run the production deploy script from the Gitea workflow after building
- include `homepage` in production deploy, pull, and health-check service lists
- allow deploy to use a release image already built locally on the VPS
This commit is contained in:
root
2026-07-04 17:08:47 -04:00
parent a5b6c559ea
commit f4ea01e9de
4 changed files with 58 additions and 5 deletions
+7 -1
View File
@@ -349,6 +349,12 @@ pull_prod_release_images() {
require_release_image
ensure_registry_transport_configured
local release_image="${APP_IMAGE:-rentaldrivego/carmanagement}:${IMAGE_TAG}"
if [[ "${IMAGE_TAG}" != "latest" ]] && docker image inspect "${release_image}" >/dev/null 2>&1; then
echo "Release image ${release_image} is already present locally; skipping docker pull."
return 0
fi
if load_release_image_archives; then
return 0
fi
@@ -360,7 +366,7 @@ pull_prod_release_images() {
exit 1
fi
prod_compose pull migrate api carplace dashboard admin
prod_compose pull migrate api homepage carplace dashboard admin
}
load_release_image_archives() {
+2 -1
View File
@@ -26,8 +26,9 @@ echo "Running database migrations"
run_prod_migrations
echo "Starting application services"
prod_compose up -d api carplace dashboard admin
prod_compose up -d api homepage carplace dashboard admin
wait_for_healthy api 180
wait_for_healthy homepage 180
wait_for_healthy carplace 180
wait_for_healthy dashboard 180
wait_for_healthy admin 180
+2 -1
View File
@@ -90,7 +90,7 @@ echo "Applying migrations"
prod_compose run --rm migrate
echo "Starting application services"
app_services=(api carplace dashboard admin)
app_services=(api homepage carplace dashboard admin)
if [[ "${INCLUDE_PGMANAGE}" == "1" ]]; then
prod_compose --profile private-tools up -d "${app_services[@]}" pgmanage
@@ -98,6 +98,7 @@ else
prod_compose up -d "${app_services[@]}"
fi
wait_for_healthy api 180
wait_for_healthy homepage 180
wait_for_healthy carplace 180
wait_for_healthy dashboard 180
wait_for_healthy admin 180