Skip to content

datarobot-oss/datarobot-agent-skills / skills/datarobot-app-framework-cicd

datarobot-app-framework-cicd

Flagged

Guidance for setting up CI/CD pipelines for DataRobot application templates using GitLab, GitHub Actions, and Pulumi for infrastructure as code. Use when setting up CI/CD pipelines, configuring deployments, or managing infrastructure for DataRobot application templates.

scripts/taskfile-snippets.yaml

View on GitHub
---
# Taskfile snippets for CI/CD
# ⚠️  COPY THIS FILE TO infra/Taskfile.yaml β€” do NOT paste tasks into the root Taskfile.yml
#
# Step 1: cp infra/scripts/taskfile-snippets.yaml infra/Taskfile.yaml
# Step 2: Add this includes block to root Taskfile.yml (the ONLY change to root):
#
#   includes:
#     infra:
#       taskfile: ./infra/Taskfile.yaml
#       dir: ./infra
#
# Tasks are then run as: task infra:encrypt-secrets, task infra:setup-github-secrets, etc.
# Scripts referenced here are in infra/scripts/ and .env is assumed to be in project root (../../.env)

version: '3'

tasks:

  # ===========================================================================
  # Secrets Management Tasks
  # ===========================================================================

  encrypt-secrets:
    desc: πŸ”’ Encrypt .env file for GitHub Actions
    dir: scripts
    cmds:
      - ./encrypt-secrets.sh
    preconditions:
      - test -f ../../.env

  decrypt-secrets:
    desc: πŸ”“ Decrypt .env.gpg file for local use
    dir: scripts
    cmds:
      - ./decrypt-secrets.sh
    preconditions:
      - test -f ../../.env.gpg

  verify-secrets:
    desc: πŸ” Verify .env file has required variables
    cmds:
      - |
        REQUIRED_VARS="DATAROBOT_API_TOKEN DATAROBOT_ENDPOINT"
        MISSING=""
        for var in $REQUIRED_VARS; do
          if ! grep -q "^${var}=" ../.env 2>/dev/null; then
            MISSING="$MISSING $var"
          fi
        done
        if [ -n "$MISSING" ]; then
          echo "❌ Missing required variables:$MISSING"
          exit 1
        fi
        echo "βœ… All required variables present"

  setup-github-secrets:
    desc: πŸ” Setup GitHub secrets interactively
    dir: scripts
    cmds:
      - ./setup-github-secrets.sh

  setup-gitlab-vars:
    desc: πŸ” Setup GitLab variables interactively
    dir: scripts
    cmds:
      - ./setup-gitlab-variables.sh

  # ===========================================================================
  # CI/CD Deployment Tasks
  # ===========================================================================

  pulumi-login-cloud:
    desc: 🌐 Login to Pulumi Cloud
    cmds:
      - pulumi login
    preconditions:
      - sh: command -v pulumi
        msg: "Pulumi not installed. Run: curl -fsSL https://get.pulumi.com | sh"

  pulumi-login-azure:
    desc: ☁️  Login to Azure Blob backend
    cmds:
      - pulumi login azblob://{{.CONTAINER}}
    vars:
      CONTAINER: '{{.CONTAINER | default "pulumi-state"}}'
    preconditions:
      - sh: command -v pulumi
        msg: "Pulumi not installed"
      - sh: test -n "$AZURE_STORAGE_ACCOUNT"
        msg: "AZURE_STORAGE_ACCOUNT not set"
      - sh: test -n "$AZURE_STORAGE_KEY"
        msg: "AZURE_STORAGE_KEY not set"

  pulumi-login-s3:
    desc: ☁️  Login to S3 backend
    cmds:
      - pulumi login s3://{{.BUCKET}}
    vars:
      BUCKET: '{{.BUCKET | default "pulumi-state"}}'
    preconditions:
      - sh: command -v pulumi
        msg: "Pulumi not installed"
      - sh: test -n "$AWS_ACCESS_KEY_ID"
        msg: "AWS_ACCESS_KEY_ID not set"

  pulumi-stack-create:
    desc: πŸ“š Create new Pulumi stack
    cmds:
      - pulumi stack select --create {{.STACK}}
    vars:
      STACK: '{{.STACK | default "dev"}}'
    preconditions:
      - sh: command -v pulumi
        msg: "Pulumi not installed"

  pulumi-deploy:
    desc: πŸš€ Deploy with Pulumi
    cmds:
      - source .venv/bin/activate && pulumi up {{.FLAGS}}
    vars:
      FLAGS: '{{.FLAGS | default "--yes"}}'
    preconditions:
      - test -d .venv
      - sh: command -v pulumi
        msg: "Pulumi not installed"

  pulumi-destroy:
    desc: πŸ—‘οΈ  Destroy Pulumi stack
    cmds:
      - source .venv/bin/activate && pulumi destroy {{.FLAGS}}
    vars:
      FLAGS: '{{.FLAGS | default "--yes"}}'
    preconditions:
      - test -d .venv
      - sh: command -v pulumi
        msg: "Pulumi not installed"

  pulumi-output:
    desc: πŸ“‹ Show Pulumi stack outputs
    cmds:
      - pulumi stack output {{.FORMAT}}
    vars:
      FORMAT: '{{.FORMAT | default "--json"}}'

  # ===========================================================================
  # CI/CD Workflow Testing
  # ===========================================================================

  ci-test-local:
    desc: πŸ§ͺ Test CI pipeline locally
    cmds:
      - task: lint-check
      - task: test
      - echo "βœ… CI checks passed"

  ci-simulate-deploy:
    desc: 🎭 Simulate GitHub Actions deployment locally
    cmds:
      - task: decrypt-secrets
      - task: install
      - task: ci-test-local
      - task: pulumi-deploy
      - echo "βœ… Deployment simulation complete"

# =============================================================================
# Usage Examples
# =============================================================================
#
# Secrets management:
#   task infra:encrypt-secrets              # Encrypt .env for GitHub
#   task infra:decrypt-secrets              # Decrypt for local use
#   task infra:verify-secrets               # Check required vars
#
# Pulumi operations:
#   task infra:pulumi-login-cloud           # Login to Pulumi Cloud
#   task infra:pulumi-login-azure           # Login to Azure backend
#   task infra:pulumi-stack-create STACK=dev        # Create new stack
#   task infra:pulumi-deploy                # Deploy current stack
#   task infra:pulumi-deploy FLAGS="--preview-only" # Preview changes
#   task infra:pulumi-destroy               # Destroy current stack
#   task infra:pulumi-output                # Show outputs
#
# Testing CI/CD:
#   task infra:ci-test-local                # Run all CI checks
#   task infra:ci-simulate-deploy           # Simulate full deployment
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path β€” even casually (like "the xlsx in my downloads") β€” and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall