Skip to content

Commit 5bb8f1d

Browse files
CopilotPhantomDave
andauthored
Add workflow_dispatch to deploy.yml with force deploy checkbox (#115)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: PhantomDave <34485699+PhantomDave@users.noreply.github.com>
1 parent 898e2df commit 5bb8f1d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Deploy to Production
33
on:
44
push:
55
branches: [main]
6+
workflow_dispatch:
7+
inputs:
8+
force_deploy:
9+
description: "Force deploy backend + frontend"
10+
type: boolean
11+
default: false
612

713
concurrency:
814
group: deploy-main
@@ -40,7 +46,7 @@ jobs:
4046
name: Build and Push Backend Image
4147
uses: ./.github/workflows/build-backend-image.yml
4248
needs: changes
43-
if: ${{ needs.changes.outputs.backend == 'true' || needs.changes.outputs.backendLibrary == 'true' || needs.changes.outputs.backendData == 'true' }}
49+
if: ${{ inputs.force_deploy == true || needs.changes.outputs.backend == 'true' || needs.changes.outputs.backendLibrary == 'true' || needs.changes.outputs.backendData == 'true' }}
4450
permissions:
4551
contents: read
4652
packages: write
@@ -49,7 +55,7 @@ jobs:
4955
name: Build and Push Frontend Image
5056
uses: ./.github/workflows/build-frontend-image.yml
5157
needs: changes
52-
if: ${{ needs.changes.outputs.frontend == 'true' }}
58+
if: ${{ inputs.force_deploy == true || needs.changes.outputs.frontend == 'true' }}
5359
permissions:
5460
contents: read
5561
packages: write

0 commit comments

Comments
 (0)