-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ssh workflow, script needs change
- Loading branch information
1 parent
7a86af1
commit 6ce43d7
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: deploy backend | ||
|
||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- old | ||
paths: | ||
- 'backend/**' | ||
|
||
|
||
jobs: | ||
deploy-back: | ||
runs-on: ubuntu-20.04 | ||
|
||
# if run on wss server, it should be changed to ubuntu 22 | ||
|
||
steps: | ||
- name: Deploy | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USER }} | ||
port: ${{ secrets.PORT }} | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
# Script is currently commented out | ||
# as kubeconfig is not yet set up | ||
# TODO | ||
# script: | | ||
# cd ${{ secrets.TARGET_PATH_BACKEND }} | ||
# git checkout old | ||
# git pull origin old | ||
# docker-compose up --build -d |