This commit is contained in:
@@ -25,18 +25,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy via Git Pull and Rsync
|
- name: Deploy via Git Pull and Rsync
|
||||||
run: |
|
run: |
|
||||||
# Pull latest on server
|
ssh -p 2222 ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} "
|
||||||
ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} "
|
cd ${{ secrets.DEPLOY_PATH }} &&
|
||||||
cd ${{ secrets.DEPLOY_PATH }} &&
|
git fetch origin &&
|
||||||
git fetch origin &&
|
git reset --hard origin/master
|
||||||
git reset --hard origin/master
|
"
|
||||||
"
|
|
||||||
|
|
||||||
- name: Restart docker container
|
- name: Restart docker container
|
||||||
run: |
|
run: |
|
||||||
# Pull latest on server
|
ssh -p 2222 ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} "
|
||||||
ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} "
|
cd ${{ secrets.DEPLOY_PATH }} &&
|
||||||
cd ${{ secrets.DEPLOY_PATH }} &&
|
docker compose down &&
|
||||||
docker compose down &&
|
docker compose up --build -d
|
||||||
docker compose up --build -d
|
"
|
||||||
"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user