Files
nix-ci-container/.gitea/workflows/build.yaml
T
Workflow config file is invalid. Please check your config file: model.ReadWorkflow: yaml: unmarshal errors: line 34: cannot unmarshal !!map into string
2026-06-04 14:40:01 +02:00

37 lines
1.0 KiB
YAML

name: Build and Publish Runner Image
on:
push:
branches:
- main
schedule:
# Run at 03:00 every Sunday to keep the base image fresh
- cron: '0 3 * * 0'
env:
# Adjust this if your Gitea domain is different
REGISTRY: gitlab.julian-mutter.de
# This automatically evaluates to your user/repo name (e.g., julian/nix-ci-runner)
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push:
# We use the standard ubuntu-latest to build our custom runner
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
registry:
url: ${{ env.REGISTRY }}
username: ${{ secrets.CONTAINER_REGISTRY_GITEA_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_GITEA_PASSWORD }}