---
name: "drone-ci-docker-native-pipelines"
description: "Execute lightweight, container-native CI pipelines defined entirely in concise YAML."
metadata:
  author: "Harness"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "write .drone.yml"
  - "configure drone ci secrets"
  - "run drone pipeline local exec"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Drone CI Container-Native Ephemeral Pipelines

Configures Drone CI: writing .drone.yml, running each build step inside an isolated Docker container, pipeline volume mounts, secret management, Docker-in-Docker (DinD) services, and integrating with GitHub/Gitea.

## When to Invoke
Invoke this skill whenever you need to:
- write .drone.yml
- configure drone ci secrets
- run drone pipeline local exec

## Execution SOP & Rules
1. Create .drone.yml with kind: pipeline and type: docker.
2. Define steps array specifying name, image, and commands.
3. Access secure environment variables using from_secret syntax.
4. Test pipeline execution locally on development machine: drone exec --trusted.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
