This commit is contained in:
@@ -6,18 +6,13 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: alpine-rsync
|
||||||
if: contains(gitea.event.head_commit.message, '[deploy]')
|
if: contains(gitea.event.head_commit.message, '[deploy]')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install ssh + rsync
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y openssh-client rsync
|
|
||||||
|
|
||||||
- name: Setup SSH
|
- name: Setup SSH
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
@@ -38,4 +33,3 @@ jobs:
|
|||||||
--omit-dir-times --mkpath \
|
--omit-dir-times --mkpath \
|
||||||
-e "ssh -i ~/.ssh/id_ed25519 -p 22" \
|
-e "ssh -i ~/.ssh/id_ed25519 -p 22" \
|
||||||
"$RSYNC_SOURCE"/ "deploy@rchou.org:${SSH_TARGET_DIR}/"
|
"$RSYNC_SOURCE"/ "deploy@rchou.org:${SSH_TARGET_DIR}/"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user