Files
finance_app/.gitea/workflows/deploy.yaml
henry yo 237fc740d7
Some checks failed
Laravel-Oracle-Deploy / redeploy (push) Failing after 2s
fix: change deploy.yaml
2026-06-25 16:16:13 +08:00

26 lines
782 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Laravel-Oracle-Deploy
on:
push:
branches:
- main
jobs:
redeploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Deploy Backend Container
run: |
echo "🚀 開始執行主機 Docker 部屬流程..."
# 1. 透過掛載的 docker.sock直接控制宿主機在實體路徑下建立並啟動容器
# 我們這裡使用 --project-directory 直接指定 1Panel 上的實體目錄
# 請確認你的專案目錄下有 docker-compose.yml 檔案
docker compose -f docker-compose.yml --project-directory /home/ubuntu/apps/finance_app up -d --build --remove-orphans
echo "🎉 部屬指令已發送!"