# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Drone CI
spec:
    description: |
        Drone is a lightweight, container-native CI/CD platform with embedded SQLite. Configure pipelines via simple YAML, trigger builds from GitHub/GitLab/Bitbucket webhooks, and monitor them through a clean web dashboard. Single container, no external database needed.
    coverImage: https://avatars.githubusercontent.com/u/2181346?s=200
    icon: https://avatars.githubusercontent.com/u/2181346?s=200
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Drone CI
        - key: DRONE_SERVER_HOST
          type: STRING
          name: Server Host
          description: The externally reachable hostname (e.g. drone.example.com)
        - key: DRONE_RPC_SECRET
          type: STRING
          name: RPC Secret
          description: Shared secret for runner-to-server communication
    tags:
        - Tool
        - DevOps
    readme: |
        # Drone CI

        A lightweight, container-native continuous integration and delivery platform. Define pipelines in simple YAML files, trigger builds automatically from Git pushes, and track results through a clean web dashboard.

        ## What You Can Do After Deployment

        1. **Visit your domain** -- the Drone dashboard opens for OAuth login
        2. **Connect a Git provider** -- link GitHub, GitLab, Bitbucket, or Gitea via OAuth to sync repositories
        3. **Activate a repository** -- enable Drone on any repo to start receiving webhooks
        4. **Add a .drone.yml** -- define build, test, and deploy steps in your repository
        5. **Monitor builds** -- watch pipeline progress in real time from the dashboard

        ## Key Features

        - Container-native pipelines run each step in an isolated Docker container
        - Simple YAML configuration with no complex DSL
        - Supports GitHub, GitLab, Bitbucket, and Gitea
        - Built-in secrets management
        - Plugin ecosystem for notifications, deployments, and more
        - Embedded SQLite database -- no external database required
        - Lightweight single binary written in Go

        ## Environment Variables

        - `DRONE_SERVER_HOST` -- your externally reachable hostname
        - `DRONE_SERVER_PROTO` -- protocol (defaults to https)
        - `DRONE_RPC_SECRET` -- shared secret between server and runners

        ## Volumes

        - `/data` -- SQLite database and application state

        ## License

        Apache-2.0 -- [GitHub](https://github.com/harness/drone) | [Website](https://www.drone.io)
    services:
        - name: drone
          icon: https://avatars.githubusercontent.com/u/2181346?s=200
          template: PREBUILT_V2
          spec:
            source:
                image: drone/drone:2.26.0
            ports:
                - id: web
                  port: 80
                  type: HTTP
            volumes:
                - id: data
                  dir: /data
            env:
                DRONE_DATABASE_DATASOURCE:
                    default: /data/database.sqlite
                    expose: false
                DRONE_DATABASE_DRIVER:
                    default: sqlite3
                    expose: false
                DRONE_RPC_SECRET:
                    default: ${PASSWORD}
                    expose: true
                DRONE_SERVER_HOST:
                    default: ${ZEABUR_WEB_DOMAIN}
                    expose: true
                DRONE_SERVER_PROTO:
                    default: https
                    expose: true
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Drone es una plataforma CI/CD ligera y nativa de contenedores con SQLite integrado. Configura pipelines con YAML simple y activa builds desde webhooks de GitHub/GitLab/Bitbucket.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a Drone CI
            - key: DRONE_SERVER_HOST
              type: STRING
              name: Host del servidor
              description: Nombre de host accesible externamente
            - key: DRONE_RPC_SECRET
              type: STRING
              name: Secreto RPC
              description: Secreto compartido entre runner y servidor
        readme: |
            # Drone CI

            Plataforma CI/CD ligera y nativa de contenedores. Define pipelines en YAML, activa builds desde Git push.

            ## Despues del despliegue

            1. **Visita tu dominio** -- el dashboard de Drone se abre para login OAuth
            2. **Conecta un proveedor Git** -- enlaza GitHub, GitLab, Bitbucket o Gitea
            3. **Activa un repositorio** -- habilita Drone para recibir webhooks
            4. **Agrega `.drone.yml`** -- define pasos de build, test y deploy
            5. **Monitorea builds** -- observa el progreso del pipeline en tiempo real

            ## Caracteristicas

            - Pipelines nativos de contenedores
            - Configuracion YAML simple
            - Soporte para multiples proveedores Git
            - SQLite integrado

            ## Licencia

            Apache-2.0 -- [GitHub](https://github.com/harness/drone)
    id-ID:
        description: |
            Drone adalah platform CI/CD ringan berbasis container dengan SQLite bawaan. Konfigurasi pipeline dengan YAML sederhana, trigger build dari webhook GitHub/GitLab/Bitbucket.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses Drone CI
            - key: DRONE_SERVER_HOST
              type: STRING
              name: Host Server
              description: Hostname yang dapat diakses dari luar
            - key: DRONE_RPC_SECRET
              type: STRING
              name: Secret RPC
              description: Secret bersama antara runner dan server
        readme: |
            # Drone CI

            Platform CI/CD ringan berbasis container. Definisikan pipeline dalam YAML, trigger build dari Git push.

            ## Setelah deploy

            1. **Buka domain** -- dashboard Drone terbuka untuk login OAuth
            2. **Hubungkan Git provider** -- sambungkan GitHub, GitLab, Bitbucket, atau Gitea
            3. **Aktifkan repository** -- aktifkan Drone untuk menerima webhook
            4. **Tambahkan `.drone.yml`** -- definisikan langkah build, test, dan deploy
            5. **Monitor build** -- pantau progres pipeline secara real-time

            ## Fitur

            - Pipeline berbasis container
            - Konfigurasi YAML sederhana
            - Dukungan multi Git provider
            - SQLite bawaan

            ## Lisensi

            Apache-2.0 -- [GitHub](https://github.com/harness/drone)
    ja-JP:
        description: |
            Droneは軽量なコンテナネイティブCI/CDプラットフォームです。SQLite内蔵でシンプルなYAMLでパイプラインを設定し、GitHub/GitLab/Bitbucketのwebhookからビルドを実行。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Drone CIにアクセスするためのドメイン
            - key: DRONE_SERVER_HOST
              type: STRING
              name: サーバーホスト
              description: 外部からアクセス可能なホスト名
            - key: DRONE_RPC_SECRET
              type: STRING
              name: RPCシークレット
              description: ランナーとサーバー間の共有シークレット
        readme: |
            # Drone CI

            軽量コンテナネイティブCI/CDプラットフォーム。YAMLでパイプラインを定義し、Gitプッシュから自動ビルド。

            ## デプロイ後にできること

            1. **ドメインにアクセス** -- Droneダッシュボードが開きOAuthログイン
            2. **Gitプロバイダー接続** -- GitHub、GitLab、Bitbucket、GiteaをOAuthで連携
            3. **リポジトリ有効化** -- Droneを有効にしてwebhookを受信
            4. **`.drone.yml`を追加** -- ビルド、テスト、デプロイのステップを定義
            5. **ビルド監視** -- パイプラインの進行をリアルタイムで確認

            ## 主な機能

            - コンテナネイティブパイプライン
            - シンプルなYAML設定
            - 複数のGitプロバイダー対応
            - 組み込みSQLite

            ## ライセンス

            Apache-2.0 -- [GitHub](https://github.com/harness/drone)
    ko-KR:
        description: |
            Drone은 내장 SQLite를 갖춘 경량 컨테이너 네이티브 CI/CD 플랫폼입니다. 간단한 YAML로 파이프라인을 구성하고 GitHub/GitLab/Bitbucket webhook에서 빌드를 트리거합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Drone CI에 접속할 도메인
            - key: DRONE_SERVER_HOST
              type: STRING
              name: 서버 호스트
              description: 외부에서 접근 가능한 호스트명
            - key: DRONE_RPC_SECRET
              type: STRING
              name: RPC 시크릿
              description: 러너와 서버 간의 공유 시크릿
        readme: |
            # Drone CI

            경량 컨테이너 네이티브 CI/CD 플랫폼. YAML로 파이프라인을 정의하고 Git 푸시로 자동 빌드.

            ## 배포 후 할 수 있는 것

            1. **도메인 접속** -- Drone 대시보드가 열리고 OAuth 로그인
            2. **Git 프로바이더 연결** -- GitHub, GitLab, Bitbucket, Gitea를 OAuth로 연동
            3. **저장소 활성화** -- Drone을 활성화하여 webhook 수신
            4. **`.drone.yml` 추가** -- 빌드, 테스트, 배포 단계 정의
            5. **빌드 모니터링** -- 파이프라인 진행 상황을 실시간으로 확인

            ## 주요 기능

            - 컨테이너 네이티브 파이프라인
            - 간단한 YAML 구성
            - 다중 Git 프로바이더 지원
            - 내장 SQLite

            ## 라이선스

            Apache-2.0 -- [GitHub](https://github.com/harness/drone)
    th-TH:
        description: |
            Drone คือ CI/CD platform ที่เบาและ container-native พร้อม SQLite ในตัว กำหนด pipeline ด้วย YAML ง่ายๆ trigger build จาก webhook ของ GitHub/GitLab/Bitbucket
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Drone CI
            - key: DRONE_SERVER_HOST
              type: STRING
              name: Server Host
              description: ชื่อโฮสต์ที่เข้าถึงได้จากภายนอก
            - key: DRONE_RPC_SECRET
              type: STRING
              name: RPC Secret
              description: Secret ที่ใช้ร่วมกันระหว่าง runner และ server
        readme: |
            # Drone CI

            CI/CD platform ที่เบาและ container-native กำหนด pipeline ด้วย YAML trigger build จาก Git push

            ## หลังจากติดตั้ง

            1. **เข้าสู่โดเมน** -- Drone dashboard เปิดสำหรับ OAuth login
            2. **เชื่อมต่อ Git provider** -- เชื่อม GitHub, GitLab, Bitbucket หรือ Gitea
            3. **เปิดใช้ repository** -- เปิดใช้ Drone เพื่อรับ webhook
            4. **เพิ่ม `.drone.yml`** -- กำหนดขั้นตอน build, test และ deploy
            5. **ติดตาม build** -- ดูความคืบหน้า pipeline แบบเรียลไทม์

            ## ฟีเจอร์

            - Pipeline แบบ container-native
            - กำหนดค่า YAML ง่าย
            - รองรับ Git provider หลายตัว
            - SQLite ในตัว

            ## สัญญาอนุญาต

            Apache-2.0 -- [GitHub](https://github.com/harness/drone)
    zh-CN:
        description: |
            Drone 是轻量级容器原生 CI/CD 平台，内置 SQLite。通过简单 YAML 配置流水线，从 GitHub/GitLab/Bitbucket webhook 触发构建。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Drone CI 的域名
            - key: DRONE_SERVER_HOST
              type: STRING
              name: 服务器主机名
              description: 外部可访问的主机名称
            - key: DRONE_RPC_SECRET
              type: STRING
              name: RPC 密钥
              description: Runner 与服务器之间的共享密钥
        readme: |
            # Drone CI

            轻量级容器原生持续集成与交付平台。以简单 YAML 定义流水线，从 Git 推送自动触发构建。

            ## 部署后可以做什么

            1. **打开域名** -- Drone 仪表板打开，进行 OAuth 登录
            2. **连接 Git 提供商** -- 通过 OAuth 连接 GitHub、GitLab、Bitbucket 或 Gitea
            3. **激活仓库** -- 在任何仓库启用 Drone
            4. **添加 .drone.yml** -- 定义构建、测试和部署步骤
            5. **监控构建** -- 实时查看流水线进度

            ## 主要功能

            - 容器原生流水线
            - 简单 YAML 配置
            - 支持多种 Git 提供商
            - 内置密钥管理
            - 内置 SQLite 数据库

            ## 授权

            Apache-2.0 -- [GitHub](https://github.com/harness/drone)
    zh-TW:
        description: |
            Drone 是輕量級容器原生 CI/CD 平台，內建 SQLite。透過簡單的 YAML 設定管線，從 GitHub/GitLab/Bitbucket webhook 觸發建置，並透過網頁儀表板監控。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Drone CI 的網域
            - key: DRONE_SERVER_HOST
              type: STRING
              name: 伺服器主機名
              description: 外部可存取的主機名稱
            - key: DRONE_RPC_SECRET
              type: STRING
              name: RPC 密鑰
              description: Runner 與伺服器之間的共享密鑰
        readme: |
            # Drone CI

            輕量級容器原生持續整合與交付平台。以簡單 YAML 定義管線，從 Git 推送自動觸發建置，透過網頁儀表板追蹤結果。

            ## 部署後可以做什麼

            1. **開啟網域** -- Drone 儀表板開啟，進行 OAuth 登入
            2. **連接 Git 供應商** -- 透過 OAuth 連結 GitHub、GitLab、Bitbucket 或 Gitea
            3. **啟用倉庫** -- 在任何倉庫啟用 Drone 以接收 webhook
            4. **新增 .drone.yml** -- 在倉庫中定義建置、測試和部署步驟
            5. **監控建置** -- 即時觀看管線進度

            ## 主要功能

            - 容器原生管線，每個步驟在隔離的 Docker 容器中執行
            - 簡單 YAML 設定
            - 支援 GitHub、GitLab、Bitbucket 和 Gitea
            - 內建密鑰管理
            - 內建 SQLite 資料庫

            ## 授權

            Apache-2.0 -- [GitHub](https://github.com/harness/drone)
