Build configuration examples for testing and documentation: - build-minimal.yaml - Auto-detect everything - build-go-cli.yaml - Cross-platform CLI - build-go-wails.yaml - Desktop app with frontend - build-go-library.yaml - Library (no binary) - build-docker.yaml - Multi-arch container - build-docker-go.yaml - Go binary + Docker - build-linuxkit.yaml - Immutable Linux images - build-php-laravel.yaml - FrankenPHP + Laravel - build-multi-binary.yaml - Multiple binaries - build-full.yaml - All available options Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
40 lines
728 B
YAML
40 lines
728 B
YAML
# Example: Docker Build Configuration
|
|
# Multi-arch container image
|
|
|
|
version: 1
|
|
|
|
project:
|
|
name: myservice
|
|
type: docker
|
|
|
|
docker:
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
registry: ghcr.io
|
|
image: myorg/myservice
|
|
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
|
|
tags:
|
|
- latest
|
|
- "{{.Version}}"
|
|
- "{{.Version}}-alpine"
|
|
|
|
build_args:
|
|
APP_VERSION: "{{.Version}}"
|
|
BUILD_DATE: "{{.Date}}"
|
|
|
|
labels:
|
|
org.opencontainers.image.source: https://github.com/myorg/myservice
|
|
org.opencontainers.image.description: My Service
|
|
org.opencontainers.image.licenses: MIT
|
|
|
|
# Optional: build stage target
|
|
target: production
|
|
|
|
# Optional: cache settings
|
|
cache:
|
|
from: type=gha
|
|
to: type=gha,mode=max
|