From f2fe4b0bc0bb5691e244a465fe04188ec422de50 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 29 Jul 2026 16:44:39 -0400 Subject: [PATCH] same stripe image build fix --- scripts/docker-prod-common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/docker-prod-common.sh b/scripts/docker-prod-common.sh index f444f96..bf6e407 100644 --- a/scripts/docker-prod-common.sh +++ b/scripts/docker-prod-common.sh @@ -225,21 +225,25 @@ validate_prod_env_file() { if [[ -z "${stripe_api_key}" || "${stripe_api_key}" == placeholder || "${stripe_api_key}" == replace-with-* || "${stripe_api_key}" == *changeme* || "${stripe_api_key}" == *change-me* ]]; then echo "Invalid STRIPE_API_KEY in ${ENV_FILE}. Set a real Stripe secret or restricted API key for production billing." >&2 + echo "Set STRIPE_API_KEY as a Gitea Actions secret, or include STRIPE_API_KEY=sk_live_.../rk_live_... in ENV_DOCKER_PRODUCTION_B64." >&2 exit 1 fi if [[ "${stripe_api_key}" != sk_live_* && "${stripe_api_key}" != rk_live_* ]]; then echo "Invalid STRIPE_API_KEY in ${ENV_FILE}. It must start with sk_live_ or rk_live_ for production billing." >&2 + echo "Use a live Stripe secret key or, preferably, a live restricted key with the required billing permissions." >&2 exit 1 fi if [[ -z "${stripe_webhook_secret}" || "${stripe_webhook_secret}" == placeholder || "${stripe_webhook_secret}" == replace-with-* || "${stripe_webhook_secret}" == *changeme* || "${stripe_webhook_secret}" == *change-me* ]]; then echo "Invalid STRIPE_WEBHOOK_SECRET in ${ENV_FILE}. Set the Stripe webhook signing secret for /api/v1/subscriptions/webhooks/stripe." >&2 + echo "Set STRIPE_WEBHOOK_SECRET as a Gitea Actions secret, or include STRIPE_WEBHOOK_SECRET=whsec_... in ENV_DOCKER_PRODUCTION_B64." >&2 exit 1 fi if [[ "${stripe_webhook_secret}" != whsec_* ]]; then echo "Invalid STRIPE_WEBHOOK_SECRET in ${ENV_FILE}. It must start with whsec_." >&2 + echo "Use the webhook signing secret from the Stripe webhook endpoint, not the Stripe API key." >&2 exit 1 fi