From 4bfdf540fa8d5a4b901c9ca03469766a02e67fcb Mon Sep 17 00:00:00 2001 From: Peter Meier Date: Tue, 14 Apr 2026 14:49:17 +0200 Subject: [PATCH] fix(ci): fall back to production CMS URL on push builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inputs are only set for workflow_dispatch — on push the env vars were empty, causing generate-api-types to try localhost:3000 and fail with ECONNREFUSED. Add || defaults so push builds hit cms.pm86.de. --- .gitea/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 6b9b614..55f7be0 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -47,8 +47,8 @@ jobs: - name: Build env: - PUBLIC_CMS_URL: ${{ inputs.public_cms_url }} - PUBLIC_SITE_URL: ${{ inputs.public_site_url }} + PUBLIC_CMS_URL: ${{ inputs.public_cms_url || 'https://cms.pm86.de' }} + PUBLIC_SITE_URL: ${{ inputs.public_site_url || 'https://windwiderstand.de' }} PUBLIC_FORMBRICKS_APP_URL: ${{ inputs.public_formbricks_app_url || 'https://forms.pm86.de' }} PUBLIC_FORMBRICKS_ENVIRONMENT_ID: ${{ inputs.public_formbricks_environment_id || 'cmnlgrjle0008mr01k018oaiz' }} run: yarn build