Our projects use Gitea Actions for CI/CD. Deployments are triggered manually — pushing or merging code does not automatically deploy to any environment. 我們的專案使用 Gitea Actions 進行 CI/CD。部署需要手動觸發 — 推送或合併程式碼不會自動部署到任何環境。 我们的项目使用 Gitea Actions 进行 CI/CD。部署需要手动触发 — 推送或合并代码不会自动部署到任何环境。 Ang mga project natin ay gumagamit ng Gitea Actions para sa CI/CD. Ang deployment ay manual na tini-trigger — ang pag-push o pag-merge ng code ay hindi awtomatikong nagde-deploy sa anumang environment.
Typical deployment flow: 一般部署流程: 一般部署流程: Karaniwang deployment flow:
master (or the project's main branch) via a Pull Request
透過 Pull Request 將你的功能分支合併到 master(或專案的主分支)
通过 Pull Request 将你的功能分支合并到 master(或项目的主分支)
I-merge ang iyong feature branch sa master (o ang main branch ng project) gamit ang Pull Request
Navigate to your repository on Gitea and click the Actions tab in the top navigation bar (between "Packages" and "Projects"). 在 Gitea 上打開你的 repository,點擊頂部導航欄中的 Actions 分頁(在「Packages」和「Projects」之間)。 在 Gitea 上打开你的 repository,点击顶部导航栏中的 Actions 标签页(在「Packages」和「Projects」之间)。 Pumunta sa iyong repository sa Gitea at i-click ang Actions tab sa itaas na navigation bar (sa pagitan ng "Packages" at "Projects").
https://git.datawords.hk/<org>/<repo>/actions
URL 格式: https://git.datawords.hk/<org>/<repo>/actions
URL 格式: https://git.datawords.hk/<org>/<repo>/actions
URL pattern: https://git.datawords.hk/<org>/<repo>/actions
On the Actions page, you'll see a list of workflows on the left sidebar. Click on the workflow you want to run (e.g. "Deploy"). 在 Actions 頁面,左側邊欄會顯示 workflow 列表。點擊你要執行的 workflow(例如 「Deploy」)。 在 Actions 页面,左侧边栏会显示 workflow 列表。点击你要执行的 workflow(例如 「Deploy」)。 Sa Actions page, makikita mo ang listahan ng mga workflow sa kaliwang sidebar. I-click ang workflow na gusto mong patakbuhin (hal. "Deploy").
A dropdown panel will appear with the following options: 會出現一個下拉面板,包含以下選項: 会出现一个下拉面板,包含以下选项: Lalabas ang isang dropdown panel na may mga sumusunod na opsyon:
After triggering the workflow, a new run appears in the Actions list. Click on it to see the live progress of each job. 觸發 workflow 後,Actions 列表中會出現一個新的 run。點擊進入可以即時看到每個 job 的進度。 触发 workflow 后,Actions 列表中会出现一个新的 run。点击进入可以实时看到每个 job 的进度。 Pagkatapos i-trigger ang workflow, lalabas ang bagong run sa Actions list. I-click ito para makita ang live progress ng bawat job.
Status icons: 狀態圖示: 状态图标: Status icons:
Click on any job name (e.g. "deploy-stg", "promote-prod") to expand it and see the detailed step-by-step logs. Each step shows its output and duration. 點擊任何 job 名稱(例如 「deploy-stg」、「promote-prod」)可以展開查看詳細的逐步 log。每個步驟都會顯示其輸出和執行時間。 点击任何 job 名称(例如 「deploy-stg」、「promote-prod」)可以展开查看详细的逐步 log。每个步骤都会显示其输出和执行时间。 I-click ang anumang job name (hal. "deploy-stg", "promote-prod") para i-expand ito at makita ang detalyadong step-by-step logs. Ipinapakita ng bawat step ang output at tagal nito.
Once all jobs show 🟢, open the target environment URL in your browser and verify that your changes are live. 當所有 job 都顯示 🟢 後,在瀏覽器中打開目標環境的 URL,確認你的更改已經生效。 当所有 job 都显示 🟢 后,在浏览器中打开目标环境的 URL,确认你的更改已经生效。 Kapag lahat ng job ay nagpapakita ng 🟢, buksan ang target environment URL sa iyong browser at i-verify na live na ang mga pagbabago mo.
Ctrl+Shift+R) to bypass browser cache when verifying.
提示:驗證時使用無痕模式或強制重新整理(Ctrl+Shift+R)以繞過瀏覽器快取。
提示:验证时使用无痕模式或强制刷新(Ctrl+Shift+R)以绕过浏览器缓存。
Tip: Gumamit ng incognito mode o hard-refresh (Ctrl+Shift+R) para ma-bypass ang browser cache kapag nagve-verify.
Common issues and how to fix them: 常見問題及解決方法: 常见问题及解决方法: Mga karaniwang problema at paano ayusin:
workflow_dispatch trigger defined. If it's missing, the button won't appear.
Workflow 必須定義了 workflow_dispatch 觸發器。如果沒有定義,按鈕就不會出現。
Workflow 必须定义了 workflow_dispatch 触发器。如果没有定义,按钮就不会出现。
Ang workflow ay dapat may workflow_dispatch trigger na naka-define. Kung wala ito, hindi lalabas ang button.
If a deployment causes issues on STG or PROD: 如果部署在 STG 或 PROD 上造成問題: 如果部署在 STG 或 PROD 上造成问题: Kung ang deployment ay nagdulot ng problema sa STG o PROD:
master (via a new commit or revert PR)
在 master 上還原有問題的 commit(透過新的 commit 或 revert PR)
在 master 上还原有问题的 commit(通过新的 commit 或 revert PR)
I-revert ang may problemang commit sa master (gamit ang bagong commit o revert PR)