Skip to content

Commit

Permalink
Allow frontend-infra to be kicked off manually
Browse files Browse the repository at this point in the history
  • Loading branch information
mdragon committed Nov 22, 2024
1 parent c5c54a8 commit 0a8bf7a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/cd-frontend-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ on:
- "infra/frontend/**"
release:
types: [published]
workflow_dispatch:
inputs:
environment:
description: "target environment"
required: true
default: "dev"
type: choice
options:
- dev
- staging
- prod

jobs:
build-repository:
Expand Down Expand Up @@ -41,7 +52,7 @@ jobs:
fail-fast: false
matrix:
directory: ["service"]
envs: ${{ github.event_name == 'release' && fromJSON('["prod"]') || fromJSON('["dev", "staging"]') }} # deploy prod on releases, otherwise deploy staging and dev
envs: ${{ github.event_name == 'release' && fromJSON('["prod"]') || github.ref_name == 'main' && fromJSON('["dev", "staging"]') || fromJSON('["dev"]') }}

permissions:
contents: read
Expand Down

0 comments on commit 0a8bf7a

Please sign in to comment.