pull docker image
Build & Deploy / Build & Push Docker Image (push) Successful in 3m4s
Test / Type Check (all packages) (push) Successful in 1m2s
Build & Deploy / Deploy to VPS (push) Successful in 4s
Test / API Unit Tests (push) Successful in 52s
Test / Homepage Unit Tests (push) Successful in 45s
Test / Storefront Unit Tests (push) Successful in 44s
Test / Admin Unit Tests (push) Successful in 43s
Test / Dashboard Unit Tests (push) Successful in 43s
Test / API Integration Tests (push) Successful in 1m1s

This commit is contained in:
root
2026-07-01 22:12:49 -04:00
parent 63f8df1e38
commit 97d5ecfcf0
2 changed files with 7 additions and 1 deletions
@@ -20,6 +20,8 @@ REGISTRY_PASSWORD=
# The VPS cannot reach the VPN-only registry, so archive loading is required.
IMAGE_ARCHIVE_DIR=/opt/docker-image-transfer
IMAGE_ARCHIVE_REQUIRED=true
# Optional VPN container name/id used by deploy-production.sh to fetch a missing image archive.
# VPN_CONTAINER=
# Database
DATABASE_URL_FROM_POSTGRES=true
+5 -1
View File
@@ -69,7 +69,8 @@ load_prod_env_exports() {
IMAGE_ARCHIVE_REQUIRED \
REGISTRY_HOST \
REGISTRY_USER \
REGISTRY_PASSWORD
REGISTRY_PASSWORD \
VPN_CONTAINER
do
export_env_value_if_unset "${key}"
done
@@ -219,10 +220,13 @@ pull_prod_release_images() {
if [[ "${IMAGE_ARCHIVE_REQUIRED:-false}" == "true" || "${IMAGE_ARCHIVE_REQUIRED:-0}" == "1" ]]; then
echo "IMAGE_ARCHIVE_REQUIRED is enabled, but no archive for IMAGE_TAG=${IMAGE_TAG} was found in ${IMAGE_ARCHIVE_DIR:-<unset>}." >&2
echo "Direct docker pull is disabled in this mode." >&2
echo "The VPS is configured for VPN/shared-folder image handoff. Create the archive first, for example:" >&2
echo " VPN_CONTAINER=<vpn-container-id-or-name> ./fetch-image-through-vpn.sh ${IMAGE_TAG}" >&2
echo "Or let deploy fetch it before starting services:" >&2
echo " VPN_CONTAINER=<vpn-container-id-or-name> ./deploy-production.sh --fetch-through-vpn" >&2
echo "You can also set VPN_CONTAINER in .env.docker.production, then run:" >&2
echo " ./deploy-production.sh" >&2
exit 1
fi