Add workflow_dispatch to deploy-production with force-build-all

Manual triggers build all apps since turbo's change filter doesn't
apply when there's no push diff to compare against.
This commit is contained in:
Julia McGhee
2026-03-20 19:44:01 +00:00
parent e863ebed9b
commit bdbc5caf8e

View File

@@ -3,6 +3,7 @@ name: Deploy Production
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
@@ -22,7 +23,11 @@ jobs:
- name: Determine changed apps
id: changes
run: |
APPS=$(pnpm turbo build --filter='...[HEAD~1]' --dry-run=json | jq -r '[.packages[] | select(startswith("@homelab/")) | sub("@homelab/";"") ] | join(",")')
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
APPS="web,api"
else
APPS=$(pnpm turbo build --filter='...[HEAD~1]' --dry-run=json | jq -r '[.packages[] | select(startswith("@homelab/")) | sub("@homelab/";"") ] | join(",")')
fi
echo "apps=$APPS" >> "$GITHUB_OUTPUT"
- name: Build and push images