-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy path.goreleaser.yaml
37 lines (34 loc) · 1.26 KB
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
builds:
- env:
- CGO_ENABLED=0
targets:
- linux_amd64
- linux_arm64
- darwin_amd64
- darwin_arm64
- linux_arm
- windows_amd64
main: ./cmd/semantic-release/
ldflags:
- -extldflags '-static'
- -s -w -X main.SRVERSION={{.Version}}
archives:
- format: binary
name_template: '{{ .Binary }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_v{{ .Version }}_checksums.txt'
dockers:
- image_templates:
- "ghcr.io/go-semantic-release/semantic-release:latest"
- "ghcr.io/go-semantic-release/semantic-release:{{.Version}}"
- "registry.gitlab.com/go-semantic-release/semantic-release:latest"
- "registry.gitlab.com/go-semantic-release/semantic-release:{{.Version}}"
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.license=MIT"
- "--label=org.opencontainers.image.source=https://github.com/go-semantic-release/semantic-release.git"
extra_files:
- ./docker/entrypoint.sh