summaryrefslogtreecommitdiffstats
path: root/.goreleaser.yml
diff options
context:
space:
mode:
Diffstat (limited to '.goreleaser.yml')
-rw-r--r--.goreleaser.yml119
1 files changed, 119 insertions, 0 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
new file mode 100644
index 0000000..f078121
--- /dev/null
+++ b/.goreleaser.yml
@@ -0,0 +1,119 @@
+# This is an example goreleaser.yaml file with some sane defaults.
+# Make sure to check the documentation at http://goreleaser.com
+# before:
+# hooks:
+# # You may remove this if you don't use go modules.
+# - go mod download
+# # you may remove this if you don't need go generate
+# - go generate ./...
+builds:
+- id: crane
+ env:
+ - CGO_ENABLED=0
+ main: ./cmd/crane/main.go
+ binary: crane
+ flags:
+ - -trimpath
+ ldflags:
+ - -s
+ - -w
+ - -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
+ - -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
+ goarch:
+ - amd64
+ - arm
+ - arm64
+ - 386
+ - s390x
+ goos:
+ - linux
+ - darwin
+ - windows
+ ignore:
+ - goos: windows
+ goarch: 386
+
+- id: gcrane
+ env:
+ - CGO_ENABLED=0
+ main: ./cmd/gcrane/main.go
+ binary: gcrane
+ flags:
+ - -trimpath
+ ldflags:
+ - -s
+ - -w
+ - -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
+ - -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
+ goarch:
+ - amd64
+ - arm
+ - arm64
+ - 386
+ - s390x
+ goos:
+ - linux
+ - darwin
+ - windows
+ ignore:
+ - goos: windows
+ goarch: 386
+
+- id: krane
+ env:
+ - CGO_ENABLED=0
+ main: ./main.go
+ dir: ./cmd/krane
+ binary: krane
+ flags:
+ - -trimpath
+ ldflags:
+ - -s
+ - -w
+ - -X github.com/google/go-containerregistry/cmd/crane/cmd.Version={{.Version}}
+ - -X github.com/google/go-containerregistry/pkg/v1/remote/transport.Version={{.Version}}
+ goarch:
+ - amd64
+ - arm
+ - arm64
+ - 386
+ - s390x
+ goos:
+ - linux
+ - darwin
+ - windows
+ ignore:
+ - goos: windows
+ goarch: 386
+source:
+ enabled: true
+archives:
+- replacements:
+ darwin: Darwin
+ linux: Linux
+ windows: Windows
+ 386: i386
+ amd64: x86_64
+ name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
+checksum:
+ name_template: 'checksums.txt'
+snapshot:
+ name_template: "{{ .Tag }}-next"
+changelog:
+ sort: asc
+ filters:
+ exclude:
+ - '^docs:'
+ - '^test:'
+release:
+ footer: |
+ ### Container Images
+
+ https://gcr.io/go-containerregistry/crane:{{.Tag}}
+ https://gcr.io/go-containerregistry/gcrane:{{.Tag}}
+
+ For example:
+ ```
+ docker pull gcr.io/go-containerregistry/crane:{{.Tag}}
+ docker pull gcr.io/go-containerregistry/gcrane:{{.Tag}}
+ ```