From 12773633cef3b796a909b34d40d2ebb26a0480f7 Mon Sep 17 00:00:00 2001 From: ChenKaiLiuG Date: Sun, 4 Jan 2026 00:29:37 +0800 Subject: [PATCH] Rebase --- .../config/gitea-runner-config.yml | 49 +++++++++++++++++++ .../config/non-used-dashboard-conf.yml | 33 +++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 karylab-entrance/config/gitea-runner-config.yml create mode 100644 karylab-entrance/config/non-used-dashboard-conf.yml diff --git a/karylab-entrance/config/gitea-runner-config.yml b/karylab-entrance/config/gitea-runner-config.yml new file mode 100644 index 0000000..aaa6608 --- /dev/null +++ b/karylab-entrance/config/gitea-runner-config.yml @@ -0,0 +1,49 @@ +log: + level: info + +runner: + file: .runner + capacity: 1 + # 關鍵:在 runner.envs 注入環境變數給所有 Job 容器 + envs: + DOCKER_HOST: tcp://docker:2375 + DOCKER_TLS_VERIFY: "" + env_file: .env + timeout: 3h + shutdown_timeout: 0s + fetch_timeout: 0s + fetch_interval: 2s + # 這裡定義你的 Workflow 可以用的 runs-on 標籤 + # 格式: "標籤名:docker://映像檔名" + labels: + - "ubuntu-latest:docker://gitea/runner-images:ubuntu-latest" + - "ubuntu-22.04:docker://gitea/runner-images:ubuntu-22.04" + - "debian-latest:docker://node:16-bullseye" + +cache: + enabled: true + dir: "" + host: "" + port: 0 + +container: + # 留空讓 act_runner 自動建立網路給 job 容器使用 + network: "" + enable_ipv6: false + + # 關鍵:指定 DinD 的 TCP 地址 + # 文檔說明:如果非空且非 "-",將使用指定的 docker host + docker_host: "tcp://docker:2375" + + privileged: true # DinD 需要 privileged 模式 + # 讓 job 容器能解析 "docker" hostname,指向 DinD daemon 所在的宿主機 + # host-gateway 會自動解析為容器的宿主機 IP(對 job 容器來說就是 DinD) + options: "--add-host=docker:host-gateway" + workdir_parent: /workspace + # 允許掛載的路徑,設為無限制以免綁手綁腳 + valid_volumes: + - '**' + force_pull: false + +host: + workdir_parent: /workspace \ No newline at end of file diff --git a/karylab-entrance/config/non-used-dashboard-conf.yml b/karylab-entrance/config/non-used-dashboard-conf.yml new file mode 100644 index 0000000..37c5ab0 --- /dev/null +++ b/karylab-entrance/config/non-used-dashboard-conf.yml @@ -0,0 +1,33 @@ +--- +# 頁面設定 +pageInfo: + title: My Dashboard + description: Welcome to your new dashboard! + navLinks: + - title: GitHub + path: https://github.com/Lissy93/dashy + - title: Documentation + path: https://dashy.to/docs + +# 應用程式區塊 +sections: + - name: Getting Started + icon: fas fa-rocket + items: + - title: Dashy Documentation + description: Everything you need to know + icon: fas fa-book + url: https://dashy.to/docs + - title: Source Code + description: View on GitHub + icon: fab fa-github + url: https://github.com/Lissy93/dashy + +# 主題與樣式設定 +appConfig: + theme: colorful + layout: auto + iconSize: medium + language: en + editingPassword: "your_secure_password" +