skills sourced live from GitHub · all skills listed are free · each skill is provided under its author's license.
home / DevOps / Github Actions Templates Skill by @wshobson
The skill is the plugins/cicd-automation/skills/github-actions-templates folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.
Ready patterns for GitHub Actions workflows covering tests, image builds, Kubernetes deploys and matrix builds.
Provides workflow patterns and a list of best practices for CI and CD across stacks. A quick way to start a pipeline and then tighten it.
The original SKILL.md is organised into these sections:
Written and maintained by @wshobson. It is published under the MIT license, which allows reuse with attribution. See the author profile. SkillDirectory does not claim authorship: this page adds our own review and links back to the original, and the skill's text belongs to its author.
# GitHub Actions Templates
Production-ready GitHub Actions workflow patterns for testing, building, and deploying applications.
## Purpose
Create efficient, secure GitHub Actions workflows for continuous integration and deployment across various tech stacks.
## When to Use
- Automate testing and deployment
- Build Docker images and push to registries
- Deploy to Kubernetes clusters
- Run security scans
- Implement matrix builds for multiple environments
## Common Workflow Patterns
### Pattern 1: Test Workflow
```yaml
name: Test
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
…
Excerpt only, quoted from the author's repository. Open the repository for the complete file.