mirror of
https://github.com/henry4682/linebot_finance.git
synced 2026-05-16 04:41:52 +00:00
change deploy.yaml ver5.
This commit is contained in:
@@ -6,16 +6,13 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
redeploy:
|
redeploy:
|
||||||
runs-on: ubuntu-latest
|
# 這裡不要用 ubuntu-latest,改用你 Runner 名稱或自定義標籤
|
||||||
# 加入下面這一行,強制不在容器內執行,直接在 Runner 所在的環境跑
|
# 如果你在 Gitea 看到它的標籤有 self-hosted,就填 self-hosted
|
||||||
container:
|
runs-on: self-hosted
|
||||||
image:
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
echo "==== 測試輸出 ===="
|
echo "==== 目前正在主機直接執行 ===="
|
||||||
|
whoami
|
||||||
cd /home/ubuntu/apps/linebot_finance
|
cd /home/ubuntu/apps/linebot_finance
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
Reference in New Issue
Block a user