-
Notifications
You must be signed in to change notification settings - Fork 110
/
goreleaser.yml
89 lines (81 loc) · 2.19 KB
/
goreleaser.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
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
project_name: stripe-mock
before:
hooks:
- go get -u honnef.co/go/tools/cmd/staticcheck@latest
- go install github.com/go-bindata/go-bindata/...@latest
- go generate -mod=readonly
- go mod vendor
builds:
- binary: stripe-mock
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
snapshot:
name_template: "{{ .Tag }}-next"
archives:
- format_overrides:
- goos: windows
format: zip
brews:
- tap:
owner: stripe
name: homebrew-stripe-mock
homepage: "https://github.com/stripe/stripe-mock"
description: "stripe-mock is a mock HTTP server that responds like the real Stripe API. It can be used instead of Stripe's testmode to make test suites integrating with Stripe faster and less brittle."
commit_author:
name: stripe-ci
email: [email protected]
service: |
keep_alive successful_exit: false
run [
opt_bin/"stripe-mock",
"-http-port",
"12111",
"-https-port",
"12112"
]
working_dir var
log_path var/"log/stripe-mock.log"
error_log_path var/"log/stripe-mock.log"
nfpms:
- vendor: Stripe
homepage: https://stripe.com
maintainer: Stripe <[email protected]>
license: MIT
formats:
- deb
- rpm
dockers:
- image_templates:
- "stripe/stripe-mock:{{ .Tag }}-amd64"
- "stripe/stripe-mock:latest-amd64"
use: buildx
goos: linux
goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
dockerfile: goreleaser.dockerfile
- image_templates:
- "stripe/stripe-mock:{{ .Tag }}-arm64"
- "stripe/stripe-mock:latest-arm64"
use: buildx
goos: linux
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64"
dockerfile: goreleaser.dockerfile
docker_manifests:
- name_template: "stripe/stripe-mock:{{ .Tag }}"
image_templates: &image_templates
- "stripe/stripe-mock:{{ .Tag }}-amd64"
- "stripe/stripe-mock:{{ .Tag }}-arm64"
- name_template: "stripe/stripe-mock:latest"
image_templates: &image_templates
- "stripe/stripe-mock:latest-amd64"
- "stripe/stripe-mock:latest-arm64"