Deploy

From weisser-dev/awesome-opencode · View interactive version

Deploy is an AI agent skill from the GitHub repository weisser-dev/awesome-opencode. Guide deployment processes including CI/CD pipeline creation, environment setup, and rollback procedures

How to use this skill

Skill file

What I do

When to use me

Use this skill when you need to:

Deployment Strategies

1. Rolling Update (Default)

2. Blue/Green

3. Canary

CI/CD Templates

GitHub Actions (Node.js)

name: Deploy
on:
  push:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '20'
      - run: npm ci
      - run: npm test

  deploy:
    needs: test
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/main'
    steps:
      - uses: actions/checkout@v4
      - name: Deploy
        run: |
          # Add deployment commands
          echo "Deploying..."

GitHub Actions (Java/Maven)

name: Deploy
on:
  push:
    branches: [main]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-java@v4
        with:
          java-version: '21'
          distribution: 'temurin'
      - run: mvn verify
      - run: mvn package -DskipTests

  deploy:
    needs: build
    runs-on: ubuntu-latest
    steps:
      - name: Deploy
        run: echo "Deploying..."

Rollback Procedure

  1. Detect: Monitor health checks and error rates
  2. Decide: If error rate > threshold, initiate rollback
  3. Execute: Revert to previous version
  4. Verify: Confirm health checks pass
  5. Communicate: Notify team of rollback and reason

Environment Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.