fix workflow
This commit is contained in:
@@ -5,16 +5,14 @@ on:
|
||||
- main
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Deploy via SSH
|
||||
|
||||
- name: Build & deploy
|
||||
run: |
|
||||
ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << 'EOF'
|
||||
set -e
|
||||
cd ${{ secrets.DEPLOY_PATH }}
|
||||
git pull
|
||||
docker compose pull
|
||||
docker compose up -d --build
|
||||
EOF
|
||||
cd /home/bookshelf/bookshelf
|
||||
git pull
|
||||
docker compose up -d --build
|
||||
Reference in New Issue
Block a user