Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
- Add workflow for building and pushing Docker image to Nexus registry - Configure semantic versioning from git tags (v1.0.0 -> 1.0.0, latest) - Add self-hosted runner configuration with Alpine Linux support - Runner uses docker:27-cli image for Docker-in-Docker builds
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
# Gitea Actions Runner Configuration
|
|
# This file configures the act_runner to use Alpine-based images
|
|
|
|
log:
|
|
level: info
|
|
|
|
runner:
|
|
# Runner registration file
|
|
file: .runner
|
|
# Capacity - how many jobs can run concurrently
|
|
capacity: 2
|
|
# Environment variables for all jobs
|
|
envs: {}
|
|
# Timeout for job execution
|
|
timeout: 3h
|
|
# Insecure mode - set to true if Gitea uses self-signed certs
|
|
insecure: false
|
|
# Fetch interval
|
|
fetch_timeout: 5s
|
|
fetch_interval: 2s
|
|
|
|
cache:
|
|
enabled: true
|
|
dir: /data/cache
|
|
|
|
container:
|
|
# Network mode for job containers
|
|
network: bridge
|
|
# Privileged mode - required for Docker-in-Docker builds
|
|
privileged: true
|
|
# Options for container creation
|
|
options: |
|
|
# Docker host - use mounted socket
|
|
docker_host: unix:///var/run/docker.sock
|
|
# Force pull images
|
|
force_pull: false
|
|
# Valid volumes that can be mounted
|
|
valid_volumes:
|
|
- /var/run/docker.sock
|
|
|
|
host:
|
|
# Workdir for the runner
|
|
workdir_parent: /data/workdir
|
|
|
|
# Label mappings - map workflow labels to container images
|
|
# This is where we define Alpine as the default
|
|
labels:
|
|
# Default self-hosted label uses Alpine with Docker
|
|
self-hosted: "docker://alpine:3.21"
|
|
# Explicit Alpine label
|
|
alpine: "docker://alpine:3.21"
|
|
# Docker label - Alpine with Docker CLI pre-installed
|
|
docker: "docker://docker:27-cli"
|
|
# For compatibility with GitHub Actions workflows
|
|
ubuntu-latest: "docker://node:20-bookworm"
|
|
ubuntu-22.04: "docker://node:20-bookworm"
|
|
ubuntu-20.04: "docker://node:20-bookworm"
|