Compare commits
No commits in common. "35657389196c604a5408b6bf58823009c02c9da4" and "47d445fb8a5dbc90405ea2ecac882e8c12cc4c19" have entirely different histories.
3565738919
...
47d445fb8a
@ -1,29 +0,0 @@
|
|||||||
name: Deploy to Server
|
|
||||||
|
|
||||||
on:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Setup SSH Key
|
|
||||||
uses: webfactory/ssh-agent@v0.7.0
|
|
||||||
with:
|
|
||||||
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
|
|
||||||
|
|
||||||
- name: Add Known Host
|
|
||||||
run: ssh-keyscan ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
- name: Deploy to Server
|
|
||||||
run: |
|
|
||||||
ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "
|
|
||||||
cd ${{ secrets.PROJECT_PATH }} &&
|
|
||||||
git pull origin master &&
|
|
||||||
docker-compose down --remove-orphans &&
|
|
||||||
docker-compose up -d --build
|
|
||||||
"
|
|
Loading…
x
Reference in New Issue
Block a user