diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index f3ab3ce..5ce5293 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -6,18 +6,13 @@ on: jobs: deploy: - runs-on: ubuntu-latest + runs-on: alpine-rsync if: contains(gitea.event.head_commit.message, '[deploy]') steps: - name: Checkout uses: actions/checkout@v4 - - name: Install ssh + rsync - run: | - sudo apt-get update - sudo apt-get install -y openssh-client rsync - - name: Setup SSH env: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} @@ -38,4 +33,3 @@ jobs: --omit-dir-times --mkpath \ -e "ssh -i ~/.ssh/id_ed25519 -p 22" \ "$RSYNC_SOURCE"/ "deploy@rchou.org:${SSH_TARGET_DIR}/" -