From f1cbdbce9c95c2f2b55c7e29e8ac141bc1fa8bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Trkan?= Date: Mon, 6 Oct 2025 21:29:35 +0200 Subject: [PATCH 1/2] update --- 7project/charts/myapp-chart/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/7project/charts/myapp-chart/values.yaml b/7project/charts/myapp-chart/values.yaml index 6752551..4b36e35 100644 --- a/7project/charts/myapp-chart/values.yaml +++ b/7project/charts/myapp-chart/values.yaml @@ -29,6 +29,7 @@ worker: # Queue name for Celery worker and for CRD Queue mailQueueName: "mail_queue" + service: port: 80 From dbd37a8b83414d0771dc6727acbf183d0e852e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Trkan?= Date: Mon, 6 Oct 2025 21:36:30 +0200 Subject: [PATCH 2/2] feat(infrastructure): add frontend, deploy to cloudflare --- .github/workflows/frontend-pages.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frontend-pages.yml b/.github/workflows/frontend-pages.yml index e8be774..cf47997 100644 --- a/.github/workflows/frontend-pages.yml +++ b/.github/workflows/frontend-pages.yml @@ -60,6 +60,7 @@ jobs: EVENT_NAME: ${{ github.event_name }} PR_NUMBER: ${{ github.event.pull_request.number || inputs.pr_number }} PR_TEMPLATE: ${{ vars.BACKEND_URL_PR_TEMPLATE }} + DEV_BASE_DOMAIN: ${{ secrets.BASE_DOMAIN }} PROD_DOMAIN_VAR: ${{ vars.PROD_DOMAIN }} PROD_DOMAIN_SECRET: ${{ secrets.PROD_DOMAIN }} BACKEND_URL_OVERRIDE: ${{ vars.BACKEND_URL || secrets.BACKEND_URL }} @@ -75,10 +76,12 @@ jobs: URL="https://${BACKEND_URL_OVERRIDE}" fi else - # 2) PR template when building for PR + # 2) PR-specific URL when building for PR if [ "${MODE:-}" = "pr" ] || [ "${EVENT_NAME}" = "pull_request" ]; then if [ -n "${PR_TEMPLATE:-}" ] && [ -n "${PR_NUMBER:-}" ] ; then URL="${PR_TEMPLATE//\{PR\}/${PR_NUMBER}}" + elif [ -n "${DEV_BASE_DOMAIN:-}" ] && [ -n "${PR_NUMBER:-}" ]; then + URL="https://pr-${PR_NUMBER}.${DEV_BASE_DOMAIN}" fi fi # 3) Fallback to PROD_DOMAIN (prefer repo var, then secret)