forked from erpc/erpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
89 lines (77 loc) · 1.86 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
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.2.0/www/docs/static/schema.json
version: 2
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
main: ./cmd/erpc/main.go
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
archives:
- format: binary
name_template: >-
{{ .ProjectName }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
checksum:
name_template: 'checksums.txt'
release:
github:
owner: erpc
name: erpc
draft: false
mode: replace
make_latest: true
name_template: "{{.Version}}"
header: |
* **Full changelog**: https://github.com/erpc/erpc/compare/{{ .PreviousTag }}...{{ .Tag }}
* **Docker Image**: `ghcr.io/erpc/erpc:{{ .Version }}`
footer: |
## Quick start
1. Create your [`erpc.yaml`](https://docs.erpc.cloud/config/example) configuration file:
```bash
touch erpc.yaml
code erpc.yaml
```
2. Use the Docker image:
```bash
docker run \
-v $(pwd)/erpc.yaml:/root/erpc.yaml
-p 4000:4000 -p 4001:4001 \
ghcr.io/erpc/erpc:{{ .Version }}
```
3. Send your first request:
```bash
curl --location 'http://localhost:4000/main/evm/42161' \
--header 'Content-Type: application/json' \
--data '{
"method": "eth_getBlockByNumber",
"params": [
"0x1203319",
false
],
"id": 9199,
"jsonrpc": "2.0"
}'
```
changelog:
use: github
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- '^chore:'