forked from TrueCloudLab/lego
135 lines
4.4 KiB
YAML
135 lines
4.4 KiB
YAML
project_name: lego
|
|
|
|
builds:
|
|
- binary: lego
|
|
|
|
main: ./cmd/lego/main.go
|
|
env:
|
|
- CGO_ENABLED=0
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- -s -w -X main.version={{.Version}}
|
|
|
|
goos:
|
|
- windows
|
|
- darwin
|
|
- linux
|
|
- freebsd
|
|
- openbsd
|
|
- solaris
|
|
goarch:
|
|
- amd64
|
|
- 386
|
|
- arm
|
|
- arm64
|
|
- mips
|
|
- mipsle
|
|
- mips64
|
|
- mips64le
|
|
goarm:
|
|
- 7
|
|
- 6
|
|
- 5
|
|
gomips:
|
|
- hardfloat
|
|
- softfloat
|
|
|
|
ignore:
|
|
- goos: darwin
|
|
goarch: 386
|
|
- goos: openbsd
|
|
goarch: arm
|
|
|
|
archives:
|
|
- id: lego
|
|
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
|
|
format: tar.gz
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
files:
|
|
- LICENSE
|
|
- CHANGELOG.md
|
|
|
|
docker_manifests:
|
|
- name_template: 'goacme/lego:{{ .Tag }}'
|
|
image_templates:
|
|
- 'goacme/lego:{{ .Tag }}-amd64'
|
|
- 'goacme/lego:{{ .Tag }}-arm64'
|
|
- 'goacme/lego:{{ .Tag }}-armv7'
|
|
- name_template: 'goacme/lego:latest'
|
|
image_templates:
|
|
- 'goacme/lego:{{ .Tag }}-amd64'
|
|
- 'goacme/lego:{{ .Tag }}-arm64'
|
|
- 'goacme/lego:{{ .Tag }}-armv7'
|
|
- name_template: 'goacme/lego:v{{ .Major }}.{{ .Minor }}'
|
|
image_templates:
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-amd64'
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-arm64'
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-armv7'
|
|
|
|
dockers:
|
|
- use: buildx
|
|
goos: linux
|
|
goarch: amd64
|
|
dockerfile: buildx.Dockerfile
|
|
image_templates:
|
|
- 'goacme/lego:latest-amd64'
|
|
- 'goacme/lego:{{ .Tag }}-amd64'
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-amd64'
|
|
build_flag_templates:
|
|
- '--pull'
|
|
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
|
- '--label=org.opencontainers.image.title={{.ProjectName}}'
|
|
- '--label=org.opencontainers.image.description=Lets Encrypt/ACME client and library written in Go'
|
|
- '--label=org.opencontainers.image.source={{.GitURL}}'
|
|
- '--label=org.opencontainers.image.url={{.GitURL}}'
|
|
- '--label=org.opencontainers.image.documentation=https://go-acme.github.io/lego'
|
|
- '--label=org.opencontainers.image.created={{.Date}}'
|
|
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
|
|
- '--label=org.opencontainers.image.version={{.Version}}'
|
|
- '--platform=linux/amd64'
|
|
|
|
- use: buildx
|
|
goos: linux
|
|
goarch: arm64
|
|
dockerfile: buildx.Dockerfile
|
|
image_templates:
|
|
- 'goacme/lego:latest-arm64'
|
|
- 'goacme/lego:{{ .Tag }}-arm64'
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-arm64'
|
|
build_flag_templates:
|
|
- '--pull'
|
|
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
|
- '--label=org.opencontainers.image.title={{.ProjectName}}'
|
|
- '--label=org.opencontainers.image.description=Lets Encrypt/ACME client and library written in Go'
|
|
- '--label=org.opencontainers.image.source={{.GitURL}}'
|
|
- '--label=org.opencontainers.image.url={{.GitURL}}'
|
|
- '--label=org.opencontainers.image.documentation=https://go-acme.github.io/lego'
|
|
- '--label=org.opencontainers.image.created={{.Date}}'
|
|
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
|
|
- '--label=org.opencontainers.image.version={{.Version}}'
|
|
- '--platform=linux/arm64'
|
|
|
|
- use: buildx
|
|
goos: linux
|
|
goarch: arm
|
|
goarm: '7'
|
|
dockerfile: buildx.Dockerfile
|
|
image_templates:
|
|
- 'goacme/lego:latest-armv7'
|
|
- 'goacme/lego:{{ .Tag }}-armv7'
|
|
- 'goacme/lego:v{{ .Major }}.{{ .Minor }}-armv7'
|
|
build_flag_templates:
|
|
- '--pull'
|
|
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
|
- '--label=org.opencontainers.image.title={{.ProjectName}}'
|
|
- '--label=org.opencontainers.image.description=Lets Encrypt/ACME client and library written in Go'
|
|
- '--label=org.opencontainers.image.source={{.GitURL}}'
|
|
- '--label=org.opencontainers.image.url={{.GitURL}}'
|
|
- '--label=org.opencontainers.image.documentation=https://go-acme.github.io/lego'
|
|
- '--label=org.opencontainers.image.created={{.Date}}'
|
|
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
|
|
- '--label=org.opencontainers.image.version={{.Version}}'
|
|
- '--platform=linux/arm/v7'
|