index-cli-plugin/.goreleaser.yaml

31 строка
660 B
YAML

project_name: docker-index
release:
prerelease: auto
draft: true
builds:
- binary: &binary docker-index
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
# set the modified timestamp on the output binary to the git timestamp to ensure a reproducible build
mod_timestamp: &build-timestamp '{{ .CommitTimestamp }}'
env: &build-env
- CGO_ENABLED=0
ldflags: &build-ldflags |
-w
-s
-extldflags '-static'
-X github.com/docker/index-cli-plugin/internal.version={{.Version}}
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip