Compare commits

..

9 Commits

Author SHA1 Message Date
2ed4a77a14 pipeline test 2 [deploy]
All checks were successful
Deploy on push / deploy (push) Successful in 5s
2025-08-14 01:52:10 +08:00
34cf54ef23 new pipeline test [deploy]
Some checks failed
Deploy on push / deploy (push) Failing after 0s
2025-08-14 01:40:56 +08:00
48c42845ed testing account
All checks were successful
Deploy on push / deploy (push) Has been skipped
2025-08-12 01:28:12 +08:00
cabbbyy
01bb176ef0 testing which account this is commited with
All checks were successful
Deploy on push / deploy (push) Has been skipped
2025-08-12 01:22:22 +08:00
cabbbyy
624a298d89 it will work this time [deploy]
Some checks failed
Deploy on push / deploy (push) Failing after 19s
2025-08-12 01:10:07 +08:00
cabbbyy
01be4e66f5 still testing pipeline [deploy]
Some checks failed
Deploy on push / deploy (push) Failing after 25s
2025-08-12 01:03:46 +08:00
cabbbyy
44774d08ed test complete [deploy]
Some checks failed
Deploy on push / deploy (push) Failing after 36s
2025-08-12 00:52:11 +08:00
cabbbyy
d8860c97ed test [deploy]
All checks were successful
Deploy on push / deploy (push) Successful in 27s
2025-08-11 16:06:05 +08:00
cabbbyy
a0bea23ad1 added pipeline
All checks were successful
Deploy on push / deploy (push) Has been skipped
2025-08-11 16:05:14 +08:00
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
name: Deploy on push
on:
push:
branches: [ "main" ]
jobs:
deploy:
runs-on: alpine-rsync
if: contains(gitea.event.head_commit.message, '[deploy]')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup SSH
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p 22 "rchou.org" >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
- name: Rsync to server
env:
SSH_TARGET_DIR: /home/cab/docker/maps/src
RSYNC_SOURCE: .
run: |
rsync -rz --delete \
--no-times --no-perms --no-owner --no-group \
--omit-dir-times --mkpath \
-e "ssh -i ~/.ssh/id_ed25519 -p 22" \
"$RSYNC_SOURCE"/ "deploy@rchou.org:${SSH_TARGET_DIR}/"

0
test Normal file
View File