This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
.goreleaser.yml
69 lines (61 loc) · 1.62 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
project_name: gitlab-merge-request-resource
before:
hooks:
- go mod tidy
builds:
- &build
id: check
main: ./cli/check/cmd/main.go
binary: 'assets_{{ .Os }}_{{ .Arch }}/check'
no_unique_dist_dir: true
env: [ 'CGO_ENABLED=0' ]
goos: [linux]
goarch: [amd64]
- <<: *build
id: in
main: ./cli/in/cmd/main.go
binary: 'assets_{{ .Os }}_{{ .Arch }}/in'
- <<: *build
id: out
main: ./cli/out/cmd/main.go
binary: 'assets_{{ .Os }}_{{ .Arch }}/out'
archives:
- id: archives
builds: [check, in, out]
format: "tar.gz"
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
wrap_in_directory: true
files:
- README*
- assets/*
changelog:
sort: asc
use: github
filters:
exclude:
- 'docs'
- '\.md'
checksum:
name_template: checksums.txt
algorithm: sha256
dockers:
- goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_TARGET }}:latest"
- "{{ .Env.DOCKER_TARGET }}:v{{ .Major }}"
- "{{ .Env.DOCKER_TARGET }}:v{{ .Major }}.{{ .Minor }}"
- "{{ .Env.DOCKER_TARGET }}:v{{ .Version }}"
build_flag_templates:
# https://github.com/opencontainers/image-spec/
- "--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"
release:
prerelease: auto
name_template: '{{.Tag}}'
...