Deployment logo

Deployment

Organization
digitalocean-labs
deployment

Deploy applications to DigitalOcean App Platform via GitHub Actions with proper environment management and secrets handling. Use when setting up CI/CD pipelines, configuring staging/production environments, managing deployment secrets, or creating GitHub Actions workflows.

Overview

Publisherdigitalocean-labs
Repositorydo-app-platform-skills
Skill namedeployment
Stars
38
Forks
4
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by digitalocean-labs on GitHub. Read the source before you install it.

Installation

Install the Deployment AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/digitalocean-labs/do-app-platform-skills/tree/main/skills/deployment
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/digitalocean-labs/do-app-platform-skills.git /tmp/do-app-platform-skills
mkdir -p .claude/skills
cp -r /tmp/do-app-platform-skills/skills/deployment .claude/skills/deployment
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Deployment in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Deployment on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Deployment is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Deployment Skill

Deploy to App Platform using GitHub Actions and the app_action workflow.

Philosophy: PUSH Mode Deployment

This skill focuses on PUSH mode — where you define infrastructure as code and GitHub Actions drives deployment.

PULL MODE (Console-driven) — NOT covered by this skill
• Go to DigitalOcean Console → Create App → Point to GitHub
• App Platform auto-generates app spec
• Good for: Quick starts, manual one-offs

PUSH MODE (CLI/Actions-driven) — THIS SKILL
• Define app spec in repo (.do/app.yaml)
• Use GitHub Actions + app_action to deploy
• Good for: CI/CD, automation, GitOps, multi-environment

Tip: For complex projects, consider the planner skill for staged approaches. See root SKILL.md for all skills.


Quick Decision

Using GitHub Actions? (RECOMMENDED)
├── YES → Use digitalocean/app_action/deploy@v2
│         • Handles spec updates AND code deployments
│         • Manages app creation if doesn't exist
│         • Supports PR previews
│
└── NO (Manual/Scripting)
    ├── Spec changed? → doctl apps update --spec
    └── Code only? → doctl apps create-deployment
CommandPurposeWhen to Use
doctl apps create --specCreate new appFirst deployment only
doctl apps update --specUpdate app specConfig changes
doctl apps create-deploymentTrigger rebuildCode changes only
app_action v2Both spec + rebuildRecommended: Handles everything

Quick Start: Environment Setup

bash
# 1. Create DigitalOcean projects
doctl projects create --name "myapp-staging" --environment "Staging"
doctl projects create --name "myapp-production" --environment "Production"

# 2. Create GitHub environments
gh api --method PUT repos/:owner/:repo/environments/staging
gh api --method PUT repos/:owner/:repo/environments/production

# 3. Set secrets per environment (user fills in values)
gh secret set DIGITALOCEAN_ACCESS_TOKEN --env staging
gh secret set DIGITALOCEAN_ACCESS_TOKEN --env production
gh variable set DO_PROJECT_ID --env staging --body "PROJECT_ID"
gh variable set DO_PROJECT_ID --env production --body "PROJECT_ID"

Full setup guide: See initial-setup.md


Quick Start: Basic Workflow

yaml
# .github/workflows/deploy.yml
name: Deploy
on:
  push:
    branches: [main]
jobs:
  deploy:
    runs-on: ubuntu-latest
    environment: staging
    steps:
      - uses: actions/checkout@v4
      - uses: digitalocean/app_action/deploy@v2
        env:
          DATABASE_URL: ${{ secrets.DATABASE_URL }}
        with:
          token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
          project_id: ${{ vars.DO_PROJECT_ID }}

All workflow templates: See workflow-templates.md


Workflow Selection

ScenarioWorkflowReference
Simple single-environmentMinimum viableworkflow-templates.md
Staging + productionEnvironment-basedworkflow-templates.md
Production needs approvalProtected environmentworkflow-templates.md
Test PRs before mergePR previewsworkflow-templates.md
Multiple envs, one workflowUnified workflowworkflow-templates.md
Need to revertRollbackworkflow-templates.md

Quick Start: Debug Container

For complex apps with multiple integrations, deploy a debug container first:

yaml
# Add to .do/app.yaml temporarily
workers:
  - name: debug
    image:
      registry_type: GHCR
      registry: ghcr.io
      repository: bikramkgupta/do-app-debug-container-python
      tag: latest
    instance_size_slug: apps-s-1vcpu-2gb
    envs:
      - key: DATABASE_URL
        scope: RUN_TIME
        value: ${db.DATABASE_URL}
bash
# Connect and verify
doctl apps console $APP_ID debug
./diagnose.sh

Full guide: See debug-container-deployment.md


Quick Command Reference

TaskCommand
Validate specdoctl apps spec validate .do/app.yaml
Create appdoctl apps create --spec .do/app.yaml --project-id $PROJECT_ID
Update appdoctl apps update $APP_ID --spec .do/app.yaml
Redeploydoctl apps create-deployment $APP_ID
View logsdoctl apps logs $APP_ID --type run
Set secretgh secret set NAME --env staging
List secretsgh secret list --env staging

Full reference: See command-reference.md


Reference Files

FileContent
initial-setup.mdProjects, environments, secrets, app spec setup
workflow-templates.mdAll GitHub Actions workflow YAML templates
debug-container-deployment.mdDebug container for infrastructure verification
command-reference.mdComplete doctl and gh CLI commands

Quick Troubleshooting

IssueSymptomFix
App spec not foundError: spec file not foundEnsure .do/app.yaml exists
Invalid token401 UnauthorizedCheck DIGITALOCEAN_ACCESS_TOKEN secret
Project not foundproject_id is invalidVerify DO_PROJECT_ID variable
Build failsBuildJobFailedCheck build logs: doctl apps logs $APP_ID --type build
Env vars literalValues show ${...}Check bindable variable names match

Opinionated Defaults

DecisionDefaultRationale
CI PlatformGitHub ActionsBest DO integration via app_action
Deploy Actionapp_action/deploy@v2Handles spec + deploy in one step
SecretsGitHub Secrets per environmentSecure, AI never sees values
deploy_on_pushfalse in app specLet GitHub Actions control deploys
App spec location.do/app.yamlConventional, matches DO button

Integration with Other Skills

  • ← designer: Creates .do/app.yaml that deployment consumes
  • ← postgres: Handles database setup, stores DATABASE_URL in GitHub Secrets
  • → troubleshooting: Debug deployment failures
  • ← devcontainers: Ensure local dev matches production

Production Checklist

  • DO Projects created with environment tags
  • GitHub environments created (staging, production)
  • DIGITALOCEAN_ACCESS_TOKEN secret set per environment
  • DO_PROJECT_ID variable set per environment
  • .do/app.yaml with deploy_on_push: false
  • .github/workflows/deploy.yml created
  • Production protection rules enabled
  • Staging deployment tested
  • Production deployment tested

Documentation Links

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Deployment AI skill do?

Deploy applications to DigitalOcean App Platform via GitHub Actions with proper environment management and secrets handling. Use when setting up CI/CD pipelines, configuring staging/production environments, managing deployment secrets, or creating GitHub Actions workflows.

Why use Deployment on TypingMind?

Because you install it once and use it with any model. Deployment is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Deployment in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/digitalocean-labs/do-app-platform-skills/tree/main/skills/deployment. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Deployment?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Deployment?

As many as you like. As long as a model supports skills, you can use Deployment with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Deployment AI skill free?

Yes. It is published on GitHub by digitalocean-labs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇