From 9746db1476882941a546a5b34d5c7bdc6b58d438 Mon Sep 17 00:00:00 2001 From: Wuesteon Date: Mon, 8 Dec 2025 17:35:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20ci:=20add=20manacore,=20todo,=20?= =?UTF-8?q?calendar,=20clock=20to=20tagged=20deployment=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added 4 new projects to workflow_dispatch options - Configured PROJECT_APPS mappings (manacore: web only, others: backend+web) - Set proper ports: calendar=3014, clock=3017, todo=3018, web apps have distinct ports - Handle custom Dockerfiles for apps with shared package dependencies 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/cd-staging-tagged.yml | 39 ++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd-staging-tagged.yml b/.github/workflows/cd-staging-tagged.yml index 72a267e8a..542bc7700 100644 --- a/.github/workflows/cd-staging-tagged.yml +++ b/.github/workflows/cd-staging-tagged.yml @@ -21,6 +21,10 @@ on: - zitare - presi - mana-core-auth + - manacore + - todo + - calendar + - clock apps: description: 'Apps to deploy (comma-separated: backend,web,landing or "all")' required: true @@ -104,6 +108,10 @@ jobs: PROJECT_APPS[zitare]="backend,web" PROJECT_APPS[presi]="backend,web" PROJECT_APPS[mana-core-auth]="service" + PROJECT_APPS[manacore]="web" + PROJECT_APPS[todo]="backend,web" + PROJECT_APPS[calendar]="backend,web" + PROJECT_APPS[clock]="backend,web" # Expand "all" to available apps if [ "$APPS" == "all" ]; then @@ -135,8 +143,17 @@ jobs: IMAGE_NAME="${PROJECT}-backend" ;; web) - DOCKERFILE_PATH="docker/templates/Dockerfile.sveltekit" - CONTEXT_PATH="apps/$PROJECT/apps/web" + # Apps with their own Dockerfiles (need monorepo root for shared packages) + case "$PROJECT" in + manacore|todo|calendar|clock) + DOCKERFILE_PATH="apps/$PROJECT/apps/web/Dockerfile" + CONTEXT_PATH="." + ;; + *) + DOCKERFILE_PATH="docker/templates/Dockerfile.sveltekit" + CONTEXT_PATH="apps/$PROJECT/apps/web" + ;; + esac IMAGE_NAME="${PROJECT}-web" ;; landing) @@ -146,15 +163,29 @@ jobs: ;; esac - # Set ports per project + # Set backend ports per project case "$PROJECT" in chat) PORT="3002" ;; picture) PORT="3006" ;; manadeck) PORT="3009" ;; zitare) PORT="3007" ;; presi) PORT="3008" ;; + calendar) PORT="3014" ;; + clock) PORT="3017" ;; + todo) PORT="3018" ;; esac - HEALTH_PATH="/api/health" + + # Override ports for web apps (SvelteKit uses different ports) + if [ "$APP" == "web" ]; then + case "$PROJECT" in + manacore) PORT="5173" ;; + todo) PORT="5188" ;; + calendar) PORT="5185" ;; + clock) PORT="5187" ;; + *) PORT="5173" ;; # default SvelteKit port + esac + fi + HEALTH_PATH="/health" ;; esac