Switch runner target to Apple Silicon Mac Mini

Update workflows from linux/arm64 to macOS/arm64 runner labels.
Replace GitHub Actions for Docker setup with direct commands
compatible with Docker Desktop on macOS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mathias Beaulieu-Duncan 2026-02-09 18:21:06 -05:00
parent 1a3e551a33
commit 95ec58a56f
3 changed files with 23 additions and 14 deletions

View File

@ -6,6 +6,8 @@
# Produces:
# - Installer container image → Docker Hub (svrnty/talos-rpi5:<tag>)
# - Raw disk image → Gitea release (metal-arm64.raw.zst)
#
# Runner: Apple Silicon Mac Mini (self-hosted, macOS, arm64)
name: Build Talos CM5 Image
@ -16,21 +18,21 @@ on:
jobs:
build:
runs-on: [self-hosted, linux, arm64]
runs-on: [self-hosted, macOS, arm64]
timeout-minutes: 180
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify Docker is running
run: docker info
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
run: docker buildx create --use --name talos-builder --driver docker-container || docker buildx use talos-builder
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
- name: Extract version tag
id: version

View File

@ -14,7 +14,7 @@ on:
jobs:
check-updates:
runs-on: [self-hosted, linux, arm64]
runs-on: [self-hosted, macOS, arm64]
timeout-minutes: 10
steps:

View File

@ -50,20 +50,27 @@ A weekly scheduled workflow checks for new Talos and RPi kernel releases and cre
| `REGISTRY_USERNAME` | Docker Hub username (org-level) |
| `REGISTRY_PASSWORD` | Docker Hub access token (org-level) |
## Runner Setup (ASUS GX10)
## Runner Setup (Apple Silicon Mac Mini)
The ARM64 build runner needs:
- Docker + Docker Buildx
- Gitea `act_runner` registered with labels: `self-hosted`, `linux`, `arm64`
The build runner needs:
- Docker Desktop with Buildx (arm64 native)
- Gitea `act_runner` registered with labels: `self-hosted`, `macOS`, `arm64`
- Sufficient disk space for kernel builds (~20GB)
```bash
# Install act_runner
curl -sL https://gitea.com/gitea/act_runner/releases/latest/download/act_runner-linux-arm64 -o act_runner
# Install act_runner via Homebrew
brew install act_runner
# Or download directly
curl -sL https://gitea.com/gitea/act_runner/releases/latest/download/act_runner-darwin-arm64 -o act_runner
chmod +x act_runner
# Register
./act_runner register --instance <gitea-url> --token <runner-token>
./act_runner register \
--instance https://git.openharbor.io \
--token <runner-token> \
--name mac-mini \
--labels self-hosted,macOS,arm64
# Run as service
./act_runner daemon