diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..ea2f46c --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,19 @@ +name: Oracle Auto Deploy +on: + push: + branches: + - main # 如果你的分支叫 master,請改為 master + +jobs: + redeploy: + runs-on: ubuntu-latest # 這裡會自動對應到你剛剛裝好的 oracle-runner + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Deploy to 1Panel Directory + run: | + # 進入你 Line Bot 所在的資料夾 + cd /home/ubuntu/apps/linebot_finance + # 執行重啟與編譯 + docker compose up -d --build \ No newline at end of file