Skip to main content
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 operational data management. This guide covers GitHub Actions, GitLab CI, and general best practices.

Why CI/CD for Operational Data?

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

  1. Go to Repository → Settings → Secrets and variables → Actions
  2. Add these secrets:
    • DCYCLE_API_KEY: Your Dcycle API key
    • DCYCLE_ORG_ID: Your organization ID
    • SLACK_WEBHOOK (optional): For notifications

GitLab CI

  1. Go to Settings → CI/CD → Variables
  2. 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.

Next Steps

Multi-Org Reporting

Consolidated reporting across organizations

Logistics Pipeline

Daily logistics data automation