-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 888 Bytes
/
deploy.yml
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
name: Deploy (SSH)
on:
# push:
# branches: [ main ]
# allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
env:
PROJECT_PATH: ${{ secrets.PROJECT_PATH }}
# PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
host: ${{ secrets.IP }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
envs: PROJECT_PATH
script: |
cd $PROJECT_PATH
git pull https://github.com/barthofu/tscord-template.git main
docker-compose up -d --build