-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.goreleaser.yaml
48 lines (48 loc) · 1.22 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
project_name: terradrift
builds:
- id: terradrift-server
main: ./terradrift-server
binary: terradrift-server
env: [CGO_ENABLED=0]
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- id: terradrift-cli
main: ./terradrift-cli
binary: terradrift-cli
env: [CGO_ENABLED=0]
goos:
- linux
- darwin
goarch:
- amd64
- arm64
dockers:
- goos: linux
goarch: amd64
dockerfile: Dockerfile.goreleaser
build_flag_templates:
- --platform=linux/amd64
image_templates:
- rootsami/{{ .ProjectName }}:{{ .Version }}-amd64
use: buildx
- goos: linux
goarch: arm64
dockerfile: Dockerfile.goreleaser
build_flag_templates:
- --platform=linux/arm64
image_templates:
- rootsami/{{ .ProjectName }}:{{ .Version }}-arm64
use: buildx
docker_manifests:
- name_template: rootsami/{{ .ProjectName }}:{{ .Version }}
image_templates:
- rootsami/{{ .ProjectName }}:{{ .Version }}-amd64
- rootsami/{{ .ProjectName }}:{{ .Version }}-arm64
- name_template: rootsami/{{ .ProjectName }}:latest
image_templates:
- rootsami/{{ .ProjectName }}:{{ .Version }}-amd64
- rootsami/{{ .ProjectName }}:{{ .Version }}-arm64