/
.goreleaser.yaml
46 lines (46 loc) · 1.32 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
builds:
- main: ./internal/cmd/nop
ldflags:
- -s -w
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
changelog:
use: github
filters:
exclude:
- merge conflict
- Merge pull request
- Merge remote-tracking branch
- Merge branch
dockers:
- image_templates:
- ghcr.io/frantjc/jenkins-job-resource
- ghcr.io/frantjc/jenkins-job-resource:{{ .Major }}
- ghcr.io/frantjc/jenkins-job-resource:{{ .Major }}.{{ .Minor }}
- ghcr.io/frantjc/jenkins-job-resource:{{ .Version }}
use: buildx
build_flag_templates:
- --pull
- --label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/frantjc/jenkins-job-resource/main/README.md
- --label=io.artifacthub.package.license=MIT
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.name={{ .ProjectName }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --platform=linux/amd64
extra_files:
- cmd
- command
- go.mod
- go.sum
- check_test.go
- in_test.go
- out_test.go
- suite_test.go
- types_test.go
- types.go