File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : pk web site backend deployment
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main # main 브랜치에 푸시될 때만 실행
4
+ workflow_run :
5
+ workflows :
6
+ - " pk web site backend testing"
7
+ types :
8
+ - completed
9
+
10
+ env :
11
+ SHA : ${{ github.sha }}
7
12
8
13
jobs :
9
14
deploy :
15
+ if : ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
10
16
runs-on : ubuntu-latest
11
17
12
18
steps :
16
22
host : ${{ secrets.HOSTNAME }}
17
23
username : ${{ secrets.USERNAME }}
18
24
key : ${{ secrets.KEY }}
25
+ envs : SHA
19
26
script : |
20
27
cd python.or.kr && git pull
21
28
25
32
host : ${{ secrets.HOSTNAME }}
26
33
username : ${{ secrets.USERNAME }}
27
34
key : ${{ secrets.KEY }}
35
+ envs : SHA
28
36
script : |
29
37
cd python.or.kr && bash deploy_prod.sh
You can’t perform that action at this time.
0 commit comments