-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.05 KB
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#name: cd
#
#on:
# push:
# paths:
# - 'api/**'
# - 'batch/**'
# tags:
# - 'v**'
#
#jobs:
# cd:
# runs-on: ubuntu-latest
# steps:
# - name: git checkout
# uses: actions/checkout@v2
#
# - name: Set Path Filter (api, batch)
# uses: dorny/[email protected]
# id: changes
# with:
# filters: |
# api:
# - 'api/**'
# batch:
# - 'batch/**'
#
# - name: Execute Remote SSH & Deploy 'API' module
# if: steps.changes.outputs.back == 'true'
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.REMOTE_SSH_HOST }}
# username: ${{ secrets.REMOTE_SSH_USERNAME }}
# key: ${{ secrets.REMOTE_SSH_KEY }}
# script: |
# whoami
# docker pull johnpark0921/lotto-portfolio:$GITHUB_REF_NAME
# docker container run --name lotto-portfolio -p 8080:8080 johnpark0921/lotto-portfolio:$GITHUB_REF_NAME
#
# # TODO: batch deploy문도 작성 필요 (crontab 설정 넣기)