-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yml
45 lines (44 loc) · 1.27 KB
/
.goreleaser.yml
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
env:
- CGO_ENABLED=0
builds:
- main: cmd/gcrgc/gcrgc.go
goos:
- darwin
- linux
- windows
goarch:
- "386"
- amd64
- arm
- arm64
dockers:
-
goarch: amd64
image_templates:
- "graillus/gcrgc:{{ .Version }}-amd64"
dockerfile: 'Dockerfile.goreleaser'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.url=https://github.com/graillus/gcrgc"
- "--label=org.opencontainers.image.source=https://github.com/graillus/gcrgc"
- "--label=org.opencontainers.image.description=A garbage collector tool for container registries"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.licenses=MIT"
docker_manifests:
- name_template: graillus/gcrgc:{{ .Version }}
image_templates:
- graillus/gcrgc:{{ .Version }}-amd64
- name_template: graillus/gcrgc:latest
image_templates:
- graillus/gcrgc:{{ .Version }}-amd64
release:
prerelease: auto
changelog:
filters:
exclude:
- '^Merge pull request'