Skip to content

Commit

Permalink
added ssh workflow, script needs change
Browse files Browse the repository at this point in the history
  • Loading branch information
aradmaleki02 committed Feb 12, 2024
1 parent 7a86af1 commit 6ce43d7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
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

0 comments on commit 6ce43d7

Please sign in to comment.