-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
72 lines (64 loc) · 1.7 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
project_name: wiz-semgrep-connector
before:
hooks:
- go mod tidy
- go test ./...
builds:
- main: ./cmd/wiz-semgrep-connector
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 7
archives:
- name_template: >-
{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}
files:
- none*
checksum:
name_template: 'checksums.txt'
dockers:
- image_templates:
- danielmoloney/{{.ProjectName}}:v{{ .Version }}-amd64
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/amd64"
extra_files:
- docker-entrypoint.sh
- image_templates:
- danielmoloney/{{.ProjectName}}:v{{ .Version }}-arm7
use: buildx
dockerfile: Dockerfile
goarch: arm
goarm: 7
build_flag_templates:
- "--platform=linux/arm/v7"
extra_files:
- docker-entrypoint.sh
- image_templates:
- danielmoloney/{{.ProjectName}}:v{{ .Version }}-arm64
use: buildx
dockerfile: Dockerfile
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64/v8"
extra_files:
- docker-entrypoint.sh
docker_manifests:
# dockerhub
- name_template: danielmoloney/{{.ProjectName}}:v{{ .Version }}
image_templates:
- danielmoloney/{{.ProjectName}}:v{{ .Version }}-amd64
- danielmoloney/{{.ProjectName}}:v{{ .Version }}-arm64
- danielmoloney/{{.ProjectName}}:v{{ .Version }}-arm7
- name_template: danielmoloney/{{.ProjectName}}:latest
image_templates:
- danielmoloney/{{.ProjectName}}:v{{ .Version }}-amd64
- danielmoloney/{{.ProjectName}}:v{{ .Version }}-arm64
- danielmoloney/{{.ProjectName}}:v{{ .Version }}-arm7