forked from wagoodman/dive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
139 lines (120 loc) · 4.35 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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
env:
# required to support multi architecture docker builds
- DOCKER_CLI_EXPERIMENTAL=enabled
- CGO_ENABLED=0
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: wagoodman
name: homebrew-dive
token: "{{.Env.TAP_GITHUB_TOKEN}}"
homepage: &project_url "https://github.com/wagoodman/dive/"
description: &description "A tool for exploring layers in a docker image"
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
nfpms:
- license: MIT
maintainer: Alex Goodman
homepage: *project_url
description: *description
formats:
- rpm
- deb
dockers:
# docker.io amd64
- &dockerhub_amd64
id: docker-amd64
ids:
- dive
use: buildx
goarch: amd64
image_templates:
- docker.io/wagoodman/dive:v{{.Version}}-amd64
build_flag_templates:
- "--build-arg=DOCKER_CLI_VERSION={{.Env.DOCKER_CLI_VERSION}}"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.description=A tool for exploring layers in a docker image"
- "--label=org.opencontainers.image.url={{.GitURL}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.licenses=MIT"
- "--label=org.opencontainers.image.authors=Alex Goodman <@wagoodman>"
# docker.io arm64
- &dockerhub_arm64
id: docker-arm64
ids:
- dive
use: buildx
goarch: arm64
image_templates:
- docker.io/wagoodman/dive:v{{.Version}}-arm64
build_flag_templates:
- "--build-arg=DOCKER_CLI_VERSION={{.Env.DOCKER_CLI_VERSION}}"
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.description=A tool for exploring layers in a docker image"
- "--label=org.opencontainers.image.url={{.GitURL}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.licenses=MIT"
- "--label=org.opencontainers.image.authors=Alex Goodman <@wagoodman>"
# ghcr.io amd64
- id: ghcr-amd64
<<: *dockerhub_amd64
image_templates:
- ghcr.io/wagoodman/dive:v{{.Version}}-amd64
# ghcr.io arm64
- id: ghcr-arm64
<<: *dockerhub_arm64
image_templates:
- ghcr.io/wagoodman/dive:v{{.Version}}-arm64
docker_manifests:
# docker.io manifests
- name_template: docker.io/wagoodman/dive:latest
image_templates: &dockerhub_images
- docker.io/wagoodman/dive:v{{.Version}}-amd64
- docker.io/wagoodman/dive:v{{.Version}}-arm64
- name_template: docker.io/wagoodman/dive:v{{.Major}}
image_templates: *dockerhub_images
- name_template: docker.io/wagoodman/dive:v{{.Major}}.{{.Minor}}
image_templates: *dockerhub_images
- name_template: docker.io/wagoodman/dive:v{{.Version}}
image_templates: *dockerhub_images
# ghcr.io manifests
- name_template: ghcr.io/wagoodman/dive:latest
image_templates: &ghcr_images
- ghcr.io/wagoodman/dive:v{{.Version}}-amd64
- ghcr.io/wagoodman/dive:v{{.Version}}-arm64
- name_template: ghcr.io/wagoodman/dive:v{{.Major}}
image_templates: *ghcr_images
- name_template: ghcr.io/wagoodman/dive:v{{.Major}}.{{.Minor}}
image_templates: *ghcr_images
- name_template: ghcr.io/wagoodman/dive:v{{.Version}}
image_templates: *ghcr_images