...
1# This is an example goreleaser.yaml file with some sane defaults.
2# Make sure to check the documentation at http://goreleaser.com
3# before:
4# hooks:
5# # You may remove this if you don't use go modules.
6# - go mod download
7# # you may remove this if you don't need go generate
8# - go generate ./...
9builds:
10- id: crane
11 env:
12 - CGO_ENABLED=0
13 main: ./cmd/crane/main.go
14 binary: crane
15 flags:
16 - -trimpath
17 ldflags:
18 - -s
19 - -w
20 - -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
21 - -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
22 goarch:
23 - amd64
24 - arm
25 - arm64
26 - 386
27 - s390x
28 - ppc64le
29 goos:
30 - linux
31 - darwin
32 - windows
33 ignore:
34 - goos: windows
35 goarch: 386
36
37- id: gcrane
38 env:
39 - CGO_ENABLED=0
40 main: ./cmd/gcrane/main.go
41 binary: gcrane
42 flags:
43 - -trimpath
44 ldflags:
45 - -s
46 - -w
47 - -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
48 - -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
49 goarch:
50 - amd64
51 - arm
52 - arm64
53 - 386
54 - s390x
55 - ppc64le
56 goos:
57 - linux
58 - darwin
59 - windows
60 ignore:
61 - goos: windows
62 goarch: 386
63
64- id: krane
65 env:
66 - CGO_ENABLED=0
67 main: ./main.go
68 dir: ./cmd/krane
69 binary: krane
70 flags:
71 - -trimpath
72 ldflags:
73 - -s
74 - -w
75 - -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
76 - -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
77 goarch:
78 - amd64
79 - arm
80 - arm64
81 - 386
82 - s390x
83 - ppc64le
84 goos:
85 - linux
86 - darwin
87 - windows
88 ignore:
89 - goos: windows
90 goarch: 386
91source:
92 enabled: true
93archives:
94- name_template: >-
95 {{ .ProjectName }}_
96 {{- title .Os }}_
97 {{- if eq .Arch "amd64" }}x86_64
98 {{- else if eq .Arch "386" }}i386
99 {{- else }}{{ .Arch }}{{ end }}
100 {{- if .Arm }}v{{ .Arm }}{{ end -}}
101checksum:
102 name_template: 'checksums.txt'
103snapshot:
104 name_template: "{{ .Tag }}-next"
105changelog:
106 sort: asc
107 filters:
108 exclude:
109 - '^docs:'
110 - '^test:'
111release:
112 footer: |
113 ### Container Images
114
115 https://gcr.io/go-containerregistry/crane:{{.Tag}}
116 https://gcr.io/go-containerregistry/gcrane:{{.Tag}}
117
118 For example:
119 ```
120 docker pull gcr.io/go-containerregistry/crane:{{.Tag}}
121 docker pull gcr.io/go-containerregistry/gcrane:{{.Tag}}
122 ```
View as plain text