Early Access - The Dcycle CLI is currently available for enterprise customers.
Contact us to learn more about access.
CI/CD Pipeline Integration
Integrate Dcycle uploads into your existing CI/CD pipelines for automated, reliable sustainability data management. This guide covers GitHub Actions, GitLab CI, and general best practices.Why CI/CD for Sustainability Data?
| Manual Process | CI/CD Automated |
|---|---|
| Remember to upload monthly | Runs automatically on schedule |
| Human errors in data entry | Validated before upload |
| No audit trail | Full git history of changes |
| Single point of failure | Reliable, repeatable process |
GitHub Actions
Basic Scheduled Upload
With Data Validation
Add validation before uploading to catch errors early:With Slack Notifications
Get notified on success or failure:GitLab CI
Validation Script
A reusable Python script for data validation:Setting Up Secrets
GitHub Actions
- Go to Repository → Settings → Secrets and variables → Actions
- Add these secrets:
DCYCLE_API_KEY: Your Dcycle API keyDCYCLE_ORG_ID: Your organization IDSLACK_WEBHOOK(optional): For notifications
GitLab CI
- Go to Settings → CI/CD → Variables
- Add the same variables (mark as “Masked” for security)
Best Practices
Use --yes Flag
Always use
--yes in CI/CD to skip interactive prompts that would hang the pipeline.Validate First
Run validation in a separate job before upload. Fail fast on bad data.
Idempotent Uploads
Design pipelines to be safely re-runnable. Handle duplicates gracefully.
Monitor & Alert
Set up notifications for failures. Don’t let broken pipelines go unnoticed.

