forked from wagoodman/dive
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yaml
89 lines (82 loc) · 3.1 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: 2
release:
# If set to auto, will mark the release as not ready for production in case there is an indicator for this in the
# tag e.g. v1.0.0-rc1 .If set to true, will mark the release as not ready for production.
prerelease: auto
# If set to true, will not auto-publish the release. This is done to allow us to review the changelog before publishing.
draft: false
builds:
- binary: dive
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
- ppc64le
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.buildTime={{.Date}}`.
brews:
- repository:
owner: joschi
name: homebrew-dive
token: "{{.Env.TAP_GITHUB_TOKEN}}"
homepage: "https://github.com/joschi/dive/"
description: "A tool for exploring layers in a docker image"
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
nfpms:
- license: MIT
maintainer: Jochen Schalanda
homepage: https://github.com/joschi/dive/
description: "A tool for exploring layers in a docker image"
formats:
- rpm
- deb
dockers:
- id: docker-amd64
ids:
- dive
use: buildx
goarch: amd64
image_templates:
- '{{ envOrDefault "REGISTRY" "docker.io" }}/joschi/dive:latest-amd64'
- '{{ envOrDefault "REGISTRY" "docker.io" }}/joschi/dive:{{ .Version }}-amd64'
build_flag_templates:
- "--build-arg=DOCKER_CLI_VERSION={{.Env.DOCKER_CLI_VERSION}}"
- "--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.source={{.GitURL}}"
- "--platform=linux/amd64"
- id: docker-arm64
ids:
- dive
use: buildx
goarch: arm64
image_templates:
- '{{ envOrDefault "REGISTRY" "docker.io" }}/joschi/dive:latest-arm64'
- '{{ envOrDefault "REGISTRY" "docker.io" }}/joschi/dive:{{ .Version }}-arm64'
build_flag_templates:
- "--build-arg=DOCKER_CLI_VERSION={{.Env.DOCKER_CLI_VERSION}}"
- "--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.source={{.GitURL}}"
- "--platform=linux/arm64/v8"
docker_manifests:
- name_template: '{{ envOrDefault "REGISTRY" "docker.io" }}/joschi/dive:latest'
image_templates:
- '{{ envOrDefault "REGISTRY" "docker.io" }}/joschi/dive:latest-amd64'
- '{{ envOrDefault "REGISTRY" "docker.io" }}/joschi/dive:latest-arm64'
- name_template: '{{ envOrDefault "REGISTRY" "docker.io" }}/joschi/dive:{{ .Version }}'
image_templates:
- '{{ envOrDefault "REGISTRY" "docker.io" }}/joschi/dive:{{ .Version }}-amd64'
- '{{ envOrDefault "REGISTRY" "docker.io" }}/joschi/dive:{{ .Version }}-arm64'