go/docs/examples/publish-docker.yaml
Snider 4ae16dc09e docs(examples): add publish-* configuration examples
Publisher configuration examples for each target:
- publish-github.yaml - GitHub Releases (foundation)
- publish-npm.yaml - npm binary wrapper
- publish-homebrew.yaml - Homebrew formula + tap
- publish-scoop.yaml - Scoop manifest (Windows)
- publish-aur.yaml - AUR PKGBUILD (Arch Linux)
- publish-chocolatey.yaml - Chocolatey NuSpec (Windows)
- publish-docker.yaml - Multi-arch containers
- publish-linuxkit.yaml - Immutable images
- publish-all.yaml - All publishers combined

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:47:01 +00:00

38 lines
683 B
YAML

# Example: Docker Publisher
# Multi-arch container images
type: docker
# Registry (default: ghcr.io)
registry: ghcr.io
# Image name
image: myorg/myapp
# Dockerfile path (default: Dockerfile)
dockerfile: Dockerfile
# Target platforms
platforms:
- linux/amd64
- linux/arm64
# Image tags
tags:
- latest
- "{{.Version}}"
- "{{.Version}}-alpine"
# Build arguments
build_args:
VERSION: "{{.Version}}"
BUILD_DATE: "{{.Date}}"
# Environment: Docker login to registry
#
# For ghcr.io:
# echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin
#
# Usage after publish:
# docker pull ghcr.io/myorg/myapp:latest
# docker run ghcr.io/myorg/myapp:v1.0.0