Using AtomGit Hosted Runners
Applicable scenarios: No need to build your own infrastructure, directly use the official resource pool Runner provided by AtomGit to execute pipeline tasks, suitable for most building, testing, and lightweight deployment scenarios.
Configuration Guide
Official Hosted Runner Tag System
AtomGit Action's official resource pool Runner uses a three-part tag format:
{os-version},{arch},{flavor}
| Segment | Meaning | Optional Values |
|---|---|---|
os-version | Operating System | ubuntu-latest, ubuntu-24, ubuntu-22 |
arch | CPU Architecture | x64, arm64 |
flavor | Resource Specification | slim, small, medium, large, xlarge, 2xlarge |
Resource Specification Details
| Specification | CPU | Memory | Applicable Scenario | Tag Example |
|---|---|---|---|---|
| slim | 1 Core | 4 GB | Lightweight checks (lint, syntax validation) | {ubuntu-24,x64,slim} |
| small | 2 Cores | 8 GB | Daily builds, small project testing | {ubuntu-24,x64,small} |
| medium | 4 Cores | 16 GB | Medium project compilation, integration testing | {ubuntu-24,x64,medium} |
| large | 8 Cores | 32 GB | Large project builds, image packaging | {ubuntu-24,x64,large} |
| xlarge | 16 Cores | 64 GB | Heavy compilation, parallel test matrix | {ubuntu-24,x64,xlarge} |
| 2xlarge | 32 Cores | 128 GB | Extremely heavy tasks, large-scale parallelism | {ubuntu-24,x64,2xlarge} |
Note: The default AtomGit hosted Runner only provides resources of slim, small, and medium specifications. If you need a Runner with Large or higher specifications, please contact AtomGit customer service.
Specify Runner in Workflow
# Use Hosted Runner
stages:
- name: lint
jobs:
- name: code-check
runs-on: {ubuntu-24,x64,slim} # Use slim for lightweight tasks
steps:
- run: npm run lint
- name: build
jobs:
- name: compile
runs-on: {ubuntu-24,x64,medium} # Use medium for medium compilation
steps:
- run: make build
- name: package
jobs:
- name: docker-build
runs-on: {ubuntu-24,x64,large} # Use large for image packaging
steps:
- run: docker build -t myapp .