-
Notifications
You must be signed in to change notification settings - Fork 546
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
65 lines (56 loc) · 2.44 KB
/
.goreleaser.yaml
File metadata and controls
65 lines (56 loc) · 2.44 KB
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
variables:
component: source/test
binary: test
project_name: plugins/source/test
monorepo:
tag_prefix: plugins-source-test-
dir: plugins/source/test
includes:
- from_file:
# Relative to the directory Go Releaser is run from (which is the root of the repository)
path: ./plugins/.goreleaser.yaml
dockers:
- goos: linux
goarch: amd64
use: buildx
dockerfile: Dockerfile.goreleaser
image_templates:
- "ghcr.io/cloudquery/cq-source-test:latest-linux-amd64"
- "ghcr.io/cloudquery/cq-source-test:{{.Version}}-linux-amd64"
- "ghcr.io/cloudquery/cq-source-test:{{ .Major }}.{{ .Minor }}-linux-amd64"
build_flag_templates:
- "--builder=mybuilder"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.source=https://github.com/cloudquery/cloudquery"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- goos: linux
goarch: arm64
use: buildx
dockerfile: Dockerfile.goreleaser
image_templates:
- "ghcr.io/cloudquery/cq-source-test:latest-linux-arm64"
- "ghcr.io/cloudquery/cq-source-test:{{.Version}}-linux-arm64"
- "ghcr.io/cloudquery/cq-source-test:{{ .Major }}.{{ .Minor }}-linux-arm64"
build_flag_templates:
- "--builder=mybuilder"
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.source=https://github.com/cloudquery/cloudquery"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
docker_manifests:
# https://goreleaser.com/customization/docker_manifest/
- name_template: ghcr.io/cloudquery/cq-source-test:latest
image_templates:
- ghcr.io/cloudquery/cq-source-test:latest-linux-amd64
- ghcr.io/cloudquery/cq-source-test:latest-linux-arm64
- name_template: ghcr.io/cloudquery/cq-source-test:{{.Version}}
image_templates:
- ghcr.io/cloudquery/cq-source-test:{{.Version}}-linux-amd64
- ghcr.io/cloudquery/cq-source-test:{{.Version}}-linux-arm64
- name_template: ghcr.io/cloudquery/cq-source-test:{{ .Major }}.{{ .Minor }}
image_templates:
- ghcr.io/cloudquery/cq-source-test:{{ .Major }}.{{ .Minor }}-linux-amd64
- ghcr.io/cloudquery/cq-source-test:{{ .Major }}.{{ .Minor }}-linux-arm64