-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
117 lines (107 loc) · 3.79 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: 2
project_name: test-engine-client
release:
name_template: Test Engine Client v{{.Version}}
draft: false
prerelease: auto
make_latest: false
mode: replace
changelog:
use: github-native
archives:
- format: binary
builds:
- env:
- CGO_ENABLED=0
goos: [linux, darwin]
goarch: [amd64, arm64]
ldflags: "-X 'main.Version=v{{ .Version }}'"
binary: bktec
checksum:
name_template: "bktec_{{ .Version }}_checksums.txt"
brews:
- name: bktec
description: "Buildkite Test Engine Client"
homepage: "https://github.com/buildkite/test-engine-client"
skip_upload: auto
directory: .
test: |
version_output = shell_output("bktec --version")
assert_match "v#{version}\n", version_output
repository:
owner: buildkite
name: homebrew-buildkite
branch: master
git:
ignore_tags:
- '{{ envOrDefault "GORELEASER_IGNORE_TAG" ""}}'
dockers:
- image_templates:
- "packages.buildkite.com/buildkite/test-engine-client-docker/test-engine-client:v{{ .Version }}-amd64"
dockerfile: "packaging/Dockerfile"
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "packages.buildkite.com/buildkite/test-engine-client-docker/test-engine-client:v{{ .Version }}-arm64"
goarch: arm64
dockerfile: "packaging/Dockerfile"
build_flag_templates:
- "--platform=linux/arm64"
- image_templates:
- "buildkite/test-engine-client:v{{ .Version }}-amd64"
# skip pushing image to Dockerhub if it's a prerelease
skip_push: auto
dockerfile: "packaging/Dockerfile"
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "buildkite/test-engine-client:v{{ .Version }}-arm64"
# skip pushing image to Dockerhub if it's a prerelease
skip_push: auto
goarch: arm64
dockerfile: "packaging/Dockerfile"
build_flag_templates:
- "--platform=linux/arm64"
docker_manifests:
- name_template: "packages.buildkite.com/buildkite/test-engine-client-docker/test-engine-client:v{{ .Version }}"
image_templates:
- "packages.buildkite.com/buildkite/test-engine-client-docker/test-engine-client:v{{ .Version }}-amd64"
- "packages.buildkite.com/buildkite/test-engine-client-docker/test-engine-client:v{{ .Version }}-arm64"
- name_template: "packages.buildkite.com/buildkite/test-engine-client-docker/test-engine-client:latest"
image_templates:
- "packages.buildkite.com/buildkite/test-engine-client-docker/test-engine-client:v{{ .Version }}-amd64"
- "packages.buildkite.com/buildkite/test-engine-client-docker/test-engine-client:v{{ .Version }}-arm64"
- name_template: "buildkite/test-engine-client:v{{ .Version }}"
image_templates:
- "buildkite/test-engine-client:v{{ .Version }}-amd64"
- "buildkite/test-engine-client:v{{ .Version }}-arm64"
# skip pushing manifest to Dockerhub if it's a prerelease
skip_push: auto
- name_template: "buildkite/test-engine-client:latest"
image_templates:
- "buildkite/test-engine-client:v{{ .Version }}-amd64"
- "buildkite/test-engine-client:v{{ .Version }}-arm64"
# skip pushing manifest to Dockerhub if it's a prerelease
skip_push: auto
nfpms:
- vendor: Buildkite
id: linux-pkg
package_name: bktec
homepage: https://github.com/buildkite/test-engine-client
maintainer: Buildkite <[email protected]>
description: Buildkite Test Engine Client
license: MIT
formats:
- deb
- rpm
provides:
- bktec
publishers:
- name: buildkite-packages
disable: "{{if .Prerelease}}true{{end}}"
cmd: .buildkite/steps/upload-linux-packages.sh {{ .ArtifactPath }}
ids:
- linux-pkg
env:
- BUILDKITE_JOB_ID={{ .Env.BUILDKITE_JOB_ID }}
- BUILDKITE_AGENT_ACCESS_TOKEN={{ .Env.BUILDKITE_AGENT_ACCESS_TOKEN }}