2.4 KiB
2.4 KiB
Pipeline Configuration Files
This folder contains all Drone CI pipeline-related configuration files and scripts.
📁 File Organization
🔧 Jsonnet Configuration
common.libsonnet- Shared pipeline components (steps, environment, triggers)build-steps.libsonnet- Build-specific logic (external Buildah integration)
🚀 Management Scripts
manage-external-buildah.sh- External Buildah service managementupdate-buildah-pod.sh- Auto-update pod references in configurationsdeploy-external-buildah.sh- Complete deployment automationconvert-to-jsonnet.sh- Migration helper from YAML to Jsonnet
⚙️ Kubernetes Resources
buildah-external-deployment.yaml- External Buildah service deploymentbuildah-rbac.yaml- RBAC for Buildah operationsdrone-build-rbac.yaml- RBAC for Drone build stepsdefault-sa-binding.yaml- Service account permissionsdrone-configmap-updated.yaml- Drone server configuration with Jsonnet support
📋 Alternative Configurations
- Various
.drone.yml.*files - Alternative pipeline configurations for reference .drone.star.example- Starlark configuration example (not used)
📚 Documentation
EXTERNAL-BUILDAH-SYSTEM.md- External build system documentationJSONNET-GUIDE.md- Jsonnet usage guide- Other analysis and guide files
🔄 Usage Workflow
- Edit Configuration: Modify
common.libsonnetorbuild-steps.libsonnet - Test Locally:
cd .. && jsonnet .drone.jsonnet - Deploy: Commit and push changes
- Manage: Use scripts in this folder for maintenance
🎯 Key Benefits
- 🧩 Organized Structure: All pipeline files in one place
- 🔄 Modular Design: Separate concerns and reusable components
- 📝 Easy Maintenance: Clear file organization and documentation
- 🛠️ Management Tools: Complete set of automation scripts
📖 Quick Start
# Test current configuration
cd .. && jsonnet .drone.jsonnet
# Check external Buildah status
./manage-external-buildah.sh status
# Deploy complete system
./deploy-external-buildah.sh
# Update pod references after restarts
./update-buildah-pod.sh
🔗 Related Files
../.drone.jsonnet- Root-level entry point (imports from this folder)../Dockerfile- Application container definition../requirements.txt- Application dependencies