73 lines
1.4 KiB
YAML
73 lines
1.4 KiB
YAML
version: 2
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy -v
|
|
builds:
|
|
- env:
|
|
- CGO_ENABLED=0
|
|
ldflags:
|
|
- -s -w -X main.version={{.Version}}
|
|
goos:
|
|
- linux
|
|
- windows
|
|
- darwin
|
|
goarch:
|
|
- arm
|
|
- arm64
|
|
- 386
|
|
- amd64
|
|
- mips
|
|
- mipsle
|
|
- s390x
|
|
- riscv64
|
|
gomips:
|
|
- softfloat
|
|
ignore:
|
|
- goos: windows
|
|
goarch: arm
|
|
- goos: windows
|
|
goarch: arm64
|
|
main: .
|
|
binary: godns
|
|
universal_binaries:
|
|
- name_template: "godns"
|
|
replace: false
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
snapshot:
|
|
version_template: "{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}"
|
|
archives:
|
|
- name_template: "godns_{{ .Os }}_{{ .Arch }}"
|
|
formats: ["zip"]
|
|
files:
|
|
- LICENSE
|
|
- README.md
|
|
- data
|
|
dockers_v2:
|
|
- images:
|
|
- "ghcr.io/xofine/{{ .ProjectName }}"
|
|
tags:
|
|
- "{{ .Version }}"
|
|
- latest
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
extra_files:
|
|
- README.md
|
|
labels:
|
|
"org.opencontainers.image.created": "{{.Date}}"
|
|
"org.opencontainers.image.title": "{{.ProjectName}}"
|
|
"org.opencontainers.image.revision": "{{.FullCommit}}"
|
|
"org.opencontainers.image.version": "{{.Version}}"
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
- "^chore"
|
|
- Merge pull request
|
|
- Merge branch
|
|
- go mod tidy
|