Skip to content

Commit

Permalink
add workflow for branch deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 20, 2023
1 parent 015a6ce commit 94c4974
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Docker Branch Deploy

on:
pull_request_review:
types: [submitted]

jobs:
build:
runs-on: ubuntu-latest
if: github.event.review.state == 'APPROVED' && contains(github.event.pull_request.labels.*.name, 'deploy-dev')
steps:
- uses: convictional/[email protected]
with:
owner: civitai
repo: civitai-deployment
workflow_file_name: deploy.yml
github_token: ${{ secrets.GHA_WORKFLOW_TRIGGER }}
ref: main
client_payload: |
{ "environment": "dev", "branch": "${{ github.ref_name }}" }
wait_workflow: false
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Deploy
name: Docker Release Deploy

on:
push:
Expand All @@ -8,7 +8,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 94c4974

Please sign in to comment.