From 620f42c1162c5eff9f676cf2086b48866d140788 Mon Sep 17 00:00:00 2001 From: Shao-Hua Yo <101379972+henry4682@users.noreply.github.com> Date: Sun, 15 Mar 2026 00:26:24 +0800 Subject: [PATCH] Update deploy.yaml --- .gitea/workflows/deploy.yaml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ac6b30f..c46df91 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,15 +1,20 @@ -name: Oracle-Deploy +name: Deploy to Oracle on: push: branches: - main jobs: - redeploy: + deploy: runs-on: ubuntu-latest steps: - - name: Deploy - run: | - git config --global --add safe.directory /home/ubuntu/apps/linebot_finance - cd /home/ubuntu/apps/linebot_finance - git pull - docker compose up -d \ No newline at end of file + - name: Deploy via SSH + uses: appleboy/ssh-action@v1.0.0 + with: + host: 64.110.81.100 + 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