-
Notifications
You must be signed in to change notification settings - Fork 200
/
.goreleaser.yaml
56 lines (45 loc) · 1.63 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
project_name: container-structure-test
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/container-structure-test
binary: container-structure-test-{{.Os}}-{{.Arch}}
ldflags:
- -X github.com/GoogleContainerTools/container-structure-test/pkg/version.version={{.Version}}
- -X github.com/GoogleContainerTools/container-structure-test/pkg/version.buildDate={{.Date}}
- -X github.com/GoogleContainerTools/container-structure-test/pkg/version.builtBy=goreleaser
- -X github.com/GoogleContainerTools/container-structure-test/pkg/version.commit={{.Commit}}
targets:
- darwin_amd64
- darwin_arm64
- linux_amd64
- linux_arm64
- linux_s390x
- linux_ppc64le
- windows_amd64
no_unique_dist_dir: true
checksum:
name_template: "checksums.txt"
archives:
- format: binary
name_template: "{{ .Binary }}"
kos:
- repository: ghcr.io/googlecontainertools/container-structure-test
base_image: ubuntu:22.04
tags:
- '{{.Version}}'
- latest
bare: true
preserve_import_paths: false
platforms:
- linux/amd64
- linux/arm64
ldflags:
- -X github.com/GoogleContainerTools/container-structure-test/pkg/version.version=12
- -X github.com/GoogleContainerTools/container-structure-test/pkg/version.buildDate={{.Date}}
- -X github.com/GoogleContainerTools/container-structure-test/pkg/version.builtBy=goreleaser
- -X github.com/GoogleContainerTools/container-structure-test/pkg/version.commit={{.Commit}}
release:
footer: |
## Container Images
`ghcr.io/googlecontainertools/container-structure-test:{{.Version}}`