testing gitea deploy

This commit is contained in:
2026-03-15 00:57:43 +08:00
parent 2f9cdbd273
commit 7da3dcba72
2 changed files with 15 additions and 0 deletions

20
.github/workflows/deploy_testing.yaml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Deploy to Oracle
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.ORACLE_HOST }}
username: ubuntu
key: ${{ secrets.ORACLE_SSH_KEY }}
script: |
git config --global --add safe.directory /home/ubuntu/apps/linebot_finance
cd /home/ubuntu/apps/linebot_finance
git pull
docker compose up -d