blumeops/.forgejo/workflows/build-ci-base.yaml
Erich Blume bcdee225e5
Some checks failed
Test CI / test (pull_request) Failing after 1s
Replace k8s runner with ci-base image for local builds
- Remove forgejo-runner k8s manifests and ArgoCD app (runner now on indri)
- Remove build-runner workflow (no longer needed)
- Add ci-base image with Ubuntu 22.04 + common CI tools
- Add build-ci-base workflow to build the image
- Update test workflow to check docker instead of buildah
- Document bootstrap vs production mode for runner labels
- Configure host.docker.internal:5050 for zot access from job containers

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 09:23:24 -08:00

37 lines
976 B
YAML

name: Build CI base image
on:
push:
tags:
- 'ci-base-v*'
workflow_dispatch:
inputs:
version:
description: 'Version (e.g. v1.0.0)'
required: true
jobs:
build:
runs-on: docker-builder
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract version from tag
id: version
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION="${{ github.event.inputs.version }}"
else
# Extract version from tag: ci-base-v1.0.0 -> v1.0.0
VERSION="${GITHUB_REF_NAME#ci-base-}"
fi
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "Building version: $VERSION"
- name: Build and push
uses: ./.forgejo/actions/build-push-image
with:
context: argocd/manifests/ci-base
image_name: blumeops/ci-base
version: ${{ steps.version.outputs.version }}