mirror of
https://github.com/henry4682/linebot_finance.git
synced 2026-05-16 04:41:52 +00:00
feat: add gitea feature
This commit is contained in:
19
.gitea/workflows/deploy.yaml
Normal file
19
.gitea/workflows/deploy.yaml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user