AgentSkillsCN

devops

CI/CD与DevOps工作流。用于修改GitHub Actions、Docker配置或compose文件。

SKILL.md
--- frontmatter
name: devops
description: CI/CD and DevOps workflow. Use when modifying GitHub Actions, Docker configurations, or compose files.

DevOps Workflow

Workflow for CI/CD and infrastructure changes.

Prerequisites

Use git-workflow Skill for branch, commit, and PR workflow.

Applicable Files

PathDescription
.github/workflows/GitHub Actions
docker/Docker configurations
compose.*.yamlDocker Compose files
DockerfileContainer definitions

GitHub Actions

Workflow Files

FilePurpose
lint-test.ymlLinting and testing

Testing Locally

bash
# Use act for local testing (if installed)
act -l                    # List workflows
act push                  # Simulate push event
act pull_request          # Simulate PR event

Syntax Validation

bash
# Check YAML syntax
yamllint .github/workflows/

Docker

Compose Files

FilePurpose
compose.yamlBase configuration
compose.btc.yamlBitcoin services
compose.eth.yamlEthereum services
compose.xrp.yamlXRP services
compose.bch.yamlBitcoin Cash services

Testing

bash
# Validate compose files
docker compose config

# Test specific compose
docker compose -f compose.yaml -f compose.btc.yaml config

Verification Checklist

  • YAML syntax is valid
  • Workflow triggers are correct
  • Secrets are not exposed
  • Actions use pinned versions
  • Docker images use specific tags

Commit Format

code
ci: {brief description}

- {change 1}
- {change 2}

Closes #{issue_number}

Related Skills

  • git-workflow - Branch, commit, PR workflow