diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 194b78f..b65eea2 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/trigger/release b/.gitea/workflows/trigger/release deleted file mode 100644 index e2fa610..0000000 --- a/.gitea/workflows/trigger/release +++ /dev/null @@ -1 +0,0 @@ -# 0.0.1 \ No newline at end of file