Skip to content

Commit 29f3bcd

Browse files
committed
fix: Update deployment conditions in docker-depoly.yaml and add branch support in self-depoly.yaml
1 parent b9b135f commit 29f3bcd

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/docker-depoly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
deploy:
12-
if: (github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'develop') || (github.event_name == 'workflow_dispatch')
12+
if: (github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'prod') || (github.event_name == 'workflow_dispatch')
1313
runs-on: ubuntu-latest
1414

1515
steps:

.github/workflows/self-depoly.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Docker CI/CD - Deploy
22

33
on:
44
workflow_dispatch:
5-
5+
branches:
6+
- test
67
jobs:
78
deploy:
89
runs-on: self-hosted

0 commit comments

Comments
 (0)