fix production storfront and homepage
Build & Deploy / Build & Push Docker Image (push) Successful in 2m45s
Test / Type Check (all packages) (push) Successful in 53s
Build & Deploy / Deploy to VPS (push) Successful in 4s
Test / API Unit Tests (push) Successful in 47s
Test / Homepage Unit Tests (push) Successful in 43s
Test / Storefront Unit Tests (push) Successful in 43s
Test / Admin Unit Tests (push) Successful in 41s
Test / Dashboard Unit Tests (push) Successful in 41s
Test / API Integration Tests (push) Successful in 1m0s
Build & Deploy / Build & Push Docker Image (push) Successful in 2m45s
Test / Type Check (all packages) (push) Successful in 53s
Build & Deploy / Deploy to VPS (push) Successful in 4s
Test / API Unit Tests (push) Successful in 47s
Test / Homepage Unit Tests (push) Successful in 43s
Test / Storefront Unit Tests (push) Successful in 43s
Test / Admin Unit Tests (push) Successful in 41s
Test / Dashboard Unit Tests (push) Successful in 41s
Test / API Integration Tests (push) Successful in 1m0s
This commit is contained in:
@@ -209,6 +209,7 @@ pull_prod_release_images() {
|
||||
require_release_image
|
||||
|
||||
if load_release_image_archives; then
|
||||
verify_prod_release_image
|
||||
return 0
|
||||
fi
|
||||
|
||||
@@ -219,7 +220,27 @@ pull_prod_release_images() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
prod_compose pull migrate api storefront dashboard admin
|
||||
prod_compose pull migrate api homepage storefront dashboard admin
|
||||
verify_prod_release_image
|
||||
}
|
||||
|
||||
verify_prod_release_image() {
|
||||
require_release_image
|
||||
|
||||
local image="${APP_IMAGE:-rentaldrivego/carmanagement}:${IMAGE_TAG}"
|
||||
|
||||
echo "Verifying production image contents: ${image}"
|
||||
if ! docker image inspect "${image}" >/dev/null 2>&1; then
|
||||
echo "Production image is not available locally after load/pull: ${image}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! docker run --rm --entrypoint sh "${image}" -c 'test -f /app/config/nextSecurityHeaders.js' >/dev/null 2>&1; then
|
||||
echo "Production image is missing /app/config/nextSecurityHeaders.js: ${image}" >&2
|
||||
echo "This image cannot start the Next.js apps because their next.config.js files require ../../config/nextSecurityHeaders." >&2
|
||||
echo "Build and transfer a fresh image from the full repository, then rerun deployment." >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
load_release_image_archives() {
|
||||
|
||||
Reference in New Issue
Block a user