datarobot-oss/datarobot-agent-skills / skills/datarobot-app-framework-cicd
datarobot-app-framework-cicd
FlaggedGuidance 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.
| File | Kind | Size |
|---|---|---|
| QUICK_REFERENCE.md | markdown | 4.0 KB |
| README.md | markdown | 6.6 KB |
| SKILL.md | skill md | 19.6 KB |
| examples/github-cd-pulumi-cloud.yml | config | 1.1 KB |
| examples/github-deploy-pulumi-cloud.yml | config | 1.3 KB |
| examples/github-destroy-pulumi-cloud.yml | config | 1.2 KB |
| examples/workflows-README.md | markdown | 3.0 KB |
| references/example-taskfile.yaml | config | 895 B |
| references/workflow-examples.md | markdown | 2.5 KB |
| scripts/decrypt-secrets.shexecutable | script | 1.2 KB |
| scripts/encrypt-secrets.shexecutable | script | 1.9 KB |
| scripts/github-cd.yml | config | 2.0 KB |
| scripts/github-deploy.yml | config | 5.0 KB |
| scripts/github-destroy.yml | config | 1.9 KB |
| scripts/gitlab-ci.yml | config | 4.7 KB |
| scripts/infra-README.md | markdown | 6.4 KB |
| scripts/pulumi-setup.shexecutable | script | 10.8 KB |
| scripts/setup-github-secrets.shexecutable | script | 3.6 KB |
| scripts/setup-gitlab-variables.shexecutable | script | 4.4 KB |
| scripts/taskfile-snippets.yaml | config | 5.6 KB |
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
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 119k | Updated | Claude CodeCodex | Verified | Install |
| 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: 118k | Updated | Claude CodeCodex | Verified | Install |