Back to list
FlexNetOS

devops

by FlexNetOS

0🍴 0📅 Jan 21, 2026

SKILL.md


name: devops description: DevOps skills for CI/CD, GitHub workflows, and infrastructure automation icon: 🚀 category: automation tools:

  • git
  • gh
  • docker
  • nix
  • github-actions

DevOps Skills

Overview

This skill provides expertise in DevOps practices including CI/CD pipelines, GitHub workflows, and infrastructure automation.

Git Operations

Basic Workflow

gs                                    # git status
ga                                    # git add
gc                                    # git commit
gp                                    # git push
gl                                    # git pull

Branching

gco <branch>                          # git checkout
gb                                    # git branch
git checkout -b feature/name          # Create and switch to branch
git merge <branch>                    # Merge branch

History

glog                                  # git log --oneline --graph
gd                                    # git diff
git log --oneline -10                 # Last 10 commits
git blame <file>                      # Line-by-line history

GitHub CLI (gh)

Pull Requests

gh pr create                          # Create PR interactively
gh pr create --title "Title" --body "Body"
gh pr list                            # List open PRs
gh pr view <number>                   # View PR details
gh pr checkout <number>               # Checkout PR locally
gh pr merge <number>                  # Merge PR

Issues

gh issue create                       # Create issue
gh issue list                         # List issues
gh issue view <number>                # View issue
gh issue close <number>               # Close issue

Workflows

gh run list                           # List workflow runs
gh run view <run-id>                  # View run details
gh run watch <run-id>                 # Watch run in real-time
gh workflow run <workflow>            # Trigger workflow

Releases

gh release create v1.0.0              # Create release
gh release list                       # List releases
gh release download                   # Download release assets

GitHub Actions

Workflow Structure

name: CI
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: DeterminateSystems/nix-installer-action@main
      - run: nix develop --command echo "Ready"

Common Actions

  • actions/checkout@v4 - Checkout repository
  • DeterminateSystems/nix-installer-action@main - Install Nix
  • DeterminateSystems/magic-nix-cache-action@main - Nix cache
  • actions/upload-artifact@v4 - Upload artifacts

Self-Hosted Runners

# Labels for WSL2 runner
runs-on: [self-hosted, Windows, WSL2]

See: .github/docs/self-hosted-runner-setup.md

Container Operations

Docker

docker build -t image:tag .           # Build image
docker run -it image:tag              # Run container
docker push registry/image:tag        # Push to registry
docker compose up -d                  # Start services

Multi-Stage Builds

FROM nixos/nix AS builder
RUN nix build .#package

FROM alpine
COPY --from=builder /result /app

Infrastructure as Code

Nix-based Deployments

nix build .#nixosConfigurations.host.config.system.build.toplevel
nixos-rebuild switch --flake .#host

Home Manager

home-manager switch --flake .#user

Secrets Management

GitHub Secrets

  • Set via: Settings → Secrets and variables → Actions
  • Access in workflow: ${{ secrets.SECRET_NAME }}
  • Never log secrets in workflow output

Local Development

  • Use .env files (gitignored)
  • Use pass or 1password-cli for credential storage
  • Use sops for encrypted secrets in git

Monitoring

Workflow Status

gh run list --limit 5                 # Recent runs
gh run view --log                     # View logs
gh api repos/{owner}/{repo}/actions/runs

Health Checks

  • Add status badges to README
  • Set up branch protection rules
  • Configure required status checks

Best Practices

  1. Pin action versions - Use SHA or version tags
  2. Cache dependencies - Use Nix cache actions
  3. Fail fast - Use continue-on-error: false
  4. Matrix builds - Test multiple platforms
  5. Reusable workflows - Extract common patterns

Troubleshooting

Workflow Failures

  • Check gh run view --log for details
  • Verify secrets are set correctly
  • Check runner availability for self-hosted

Permission Issues

  • Verify GITHUB_TOKEN permissions
  • Check repository settings for actions

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon