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:
7
.github/workflows/deploy-production.yaml
vendored
7
.github/workflows/deploy-production.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user