forked from authzed/zed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.docker.yml
63 lines (60 loc) · 1.57 KB
/
.goreleaser.docker.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
---
builds:
- id: "linux-amd64"
goos: ["linux"]
goarch: ["amd64"]
env:
- "CC=gcc"
- "CGO_ENABLED=1"
main: &main "./cmd/zed"
binary: &binary "zed"
mod_timestamp: &mod_timestamp "{{ .CommitTimestamp }}"
flags: &flags ["-trimpath"]
asmflags: &asmflags ["all=-trimpath={{ .Env.GITHUB_WORKSPACE }}"]
gcflags: &gcflags ["all=-trimpath={{ .Env.GITHUB_WORKSPACE }}"]
ldflags: &ldflags
- "-s -w"
- "-X {{ .ModulePath }}/internal/version.Version={{ .Version }}"
- id: "linux-arm64"
goos: ["linux"]
goarch: ["arm64"]
env:
- "CC=aarch64-linux-gnu-gcc"
- "CGO_ENABLED=1"
main: *main
binary: *binary
mod_timestamp: *mod_timestamp
flags: *flags
asmflags: *asmflags
gcflags: *gcflags
ldflags: *ldflags
dockers:
- image_templates:
- &amd_image "quay.io/authzed/zed:{{ .Version }}-amd64"
ids: ["linux-amd64"]
dockerfile: &dockerfile "Dockerfile.release"
goos: "linux"
goarch: "amd64"
use: "buildx"
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- &arm_image "quay.io/authzed/zed:{{ .Version }}-arm64"
ids: ["linux-arm64"]
dockerfile: *dockerfile
goos: "linux"
goarch: "arm64"
use: "buildx"
build_flag_templates:
- "--platform=linux/arm64"
docker_manifests:
- name_template: "quay.io/authzed/zed:{{ .Version }}"
image_templates:
- *amd_image
- *arm_image
- name_template: "quay.io/authzed/zed:latest"
image_templates:
- *amd_image
- *arm_image
release:
disable: true