infra/.github/workflows/build-cli.yml
Viktor Barzin 1621f0b204
All checks were successful
ci/woodpecker/push/default Pipeline was successful
ci: GHA→ghcr builds for chrome-service-novnc, android-emulator, infra CLI (ADR-0002 #29/#30)
Infra-owned rare-build images move off Woodpecker/manual to GHA (build
from the github checkout — Dockerfiles verified identical on both
remotes). chrome-service-novnc + android-emulator → public ghcr
(dispatch+path). CLI → DockerHub (kept) + ghcr; Woodpecker build-cli.yml
removed. infra-ci handled separately (bootstrap-critical).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-13 09:38:36 +00:00

41 lines
1.1 KiB
YAML

name: Build infra CLI
# ADR-0002: infra CLI built off-infra on GHA. Replaces the Woodpecker
# build-cli.yml. Pushes to DockerHub (public distribution, kept) + ghcr.
# Not a cluster workload — a distributed tool image.
on:
push:
branches: [master]
paths:
- 'cli/**'
workflow_dispatch: {}
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: cli
platforms: linux/amd64
provenance: false
push: true
tags: |
viktorbarzin/infra:latest
ghcr.io/viktorbarzin/infra-cli:latest
ghcr.io/viktorbarzin/infra-cli:${{ github.sha }}