Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)41k · #6812

depot-github-runners

Skill này làm gì

Skill này hướng dẫn AI chạy các job GitHub Actions trên máy do Depot quản lý. Nó dành cho lập trình viên muốn dùng runner khác mà không phải viết lại workflow.

Khi nào nên dùng

  • ✓Khi bạn muốn các job GitHub Actions chạy trên Depot thay vì runner do GitHub cung cấp.
  • ✓Khi bạn cần chọn kích thước runner, hoặc runner ARM, Windows hay macOS.
  • ✓Khi một job chạy trên runner Depot bị lỗi và bạn cần giúp sửa thiết lập.

Liên kết skill

https://github.com/PostHog/posthog/blob/master/.agents/skills/depot-github-runners/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/.agents/skills/depot-github-runners/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Chuyển job build GitHub Actions của tôi sang runner Depot và chọn kích thước phù hợp với một bản build nặng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đổi nhãn runs-on trong file workflow, thường đây là thay đổi duy nhất cần làm. Sau đó, agent giúp chọn kích thước và kiểm tra thiết lập, chẳng hạn quyền sở hữu tổ chức và quy tắc mạng đi ra ngoài.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Depot GitHub Actions Runners

Depot provides managed, ephemeral, single-tenant GitHub Actions runners. Drop-in replacement for GitHub-hosted runners — change the runs-on label and everything else stays the same.

Requirement: Repository must be owned by a GitHub organization (not a personal account).

<!-- PostHog-local section. Keep it when resyncing from upstream; see UPSTREAM.md. -->

Depot runners are not Depot CI

Depot runners keep GitHub Actions as the engine, so the workflow lives in .github/workflows/ and the checks still come from the github-actions app. Depot CI is a different product. It reads .depot/workflows/, which GitHub Actions ignores, and posts its own check runs from one of three Depot apps. Use the depot-ci skill for that one.

Its references/posthog-check-run-semantics.md compares what each engine reports for a skipped, empty-matrix or continue-on-error job, and how GitHub and the Trunk merge queue score those conclusions.

<!-- End PostHog-local section. -->

Setup

  1. Depot dashboard → GitHub Actions → Connect to GitHub → Install Depot GitHub App
  2. For public repos: GitHub org settings → Actions → Runner groups → Default → "Allow public repositories"
  3. Update runs-on in your workflow files

Org Context Check for Multi-Org Users

If a user belongs to multiple organizations and expected repos/settings/runners are not visible, verify Depot org context first:

depot org show              # Current org ID
depot org list              # Orgs the user belongs to
depot org switch <org-id>   # Optional: set default org

For commands that support it, pass --org <org-id> to target the org where the workflow/repo lives.

Runner Labels

Use a single label. Format: depot-{os}-{version}[-{arch}][-{size}]

Ubuntu (x86, AMD)

Label CPUs RAM Disk $/min Minutes multiplier
depot-ubuntu-24.04 2 8 GB 100 GB $0.006 1x
depot-ubuntu-24.04-4 4 16 GB 130 GB $0.012 2x
depot-ubuntu-24.04-8 8 32 GB 150 GB $0.024 4x
depot-ubuntu-24.04-16 16 64 GB 180 GB $0.048 8x
depot-ubuntu-24.04-32 32 128 GB 200 GB $0.096 16x
depot-ubuntu-24.04-64 64 256 GB 250 GB $0.192 32x

The minutes multiplier is the billing driver: billed minutes = elapsed minutes × multiplier, so larger runners consume your included minutes faster.

Ubuntu 22.04 also available: depot-ubuntu-22.04, depot-ubuntu-22.04-4, etc.

Ubuntu (ARM — Graviton4)

Same sizes and pricing as Intel. Add -arm suffix: depot-ubuntu-24.04-arm, depot-ubuntu-24.04-arm-4, depot-ubuntu-24.04-arm-8, etc.

Windows Server

Label CPUs RAM $/min Minutes multiplier
depot-windows-2025 2 8 GB $0.008 2x
depot-windows-2025-4 4 16 GB $0.016 4x
depot-windows-2025-8 through -64 8–64 32–256 GB $0.032–$0.256 8x–64x

Windows Server 2022 also available: depot-windows-2022, etc. Windows limitation: No Hyper-V (AWS EC2 limitation), so Docker workloads that require it are unlikely to work.

macOS (Apple M2 on macOS 14/15, M4 on macOS 26)

Label CPUs RAM Disk $/min
depot-macos-26 / depot-macos-latest 8 24 GB 400 GB $0.08
depot-macos-15 8 24 GB 400 GB $0.08
depot-macos-14 8 24 GB 400 GB $0.08

macOS is NOT fully elastic — fixed pool with FIFO queuing.

Aliases

depot-ubuntu-latest → Ubuntu 24.04, depot-windows-latest → Windows 2025, depot-macos-latest → macOS 26

Migration Example

jobs:
  build:
    # Before:
    # runs-on: ubuntu-latest
    # After:
    runs-on: depot-ubuntu-24.04-4
    steps:
      - uses: actions/chec
Câu hỏi thường gặp

Kho mã cần có điều kiện gì?

Skill nói rằng kho mã phải thuộc một tổ chức GitHub, không phải tài khoản cá nhân.

Phần còn lại của workflow có cần thay đổi không?

Không. Skill nói rằng thường chỉ cần đổi nhãn runs-on.

Skill có bao gồm quy tắc mạng không?

Có. Skill hướng dẫn cấu hình bộ lọc egress cho runner Depot.

Chi tiết

Mô tả gốc của tác giả

Configures Depot-managed GitHub Actions runners as a drop-in replacement for GitHub-hosted runners. Use when setting up or migrating GitHub Actions workflows to use Depot runners, choosing runner sizes (CPU/RAM), configuring runs-on labels, setting up ARM or Windows or macOS runners, troubleshooting GitHub Actions runner issues, configuring egress filtering, using Depot Cache with GitHub Actions, or running Dagger/Dependabot on Depot runners. Also use when the user mentions depot-ubuntu, depot-windows, depot-macos runner labels, or asks about faster/cheaper GitHub Actions runners. Not for Depo

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6812
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự