From 18418f261b103ddfb2357a28bb82e07512cd9651 Mon Sep 17 00:00:00 2001 From: rchou Date: Mon, 18 Aug 2025 01:53:17 +0800 Subject: [PATCH] leaner runner image [deploy] --- .gitea/workflows/pipeline.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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}/" -