Skip to content

Commit f75a8d9

Browse files
committed
Update docs
1 parent 00d262d commit f75a8d9

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

parrot/.goreleaser.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
# Build settings for binaries
1414
builds:
1515
- id: parrot
16+
main: ./cmd/main.go
1617
goos:
1718
- linux
1819
- darwin
@@ -23,7 +24,7 @@ builds:
2324
- '-s -w'
2425

2526
archives:
26-
- format: binary
27+
- formats: ['binary']
2728

2829
dockers:
2930
- id: linux-amd64-parrot

parrot/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@ bench:
3030

3131
.PHONY: build
3232
build:
33-
go build -o ./parrot ./cmd
33+
go build -o ./parrot ./cmd
34+
35+
.PHONY: goreleaser
36+
goreleaser:
37+
cd .. && goreleaser build --snapshot --clean -f ./parrot/.goreleaser.yaml --output ./parrot/dist

parrot/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ make test
1616
make test PARROT_TEST_LOG_LEVEL=trace # Set log level for tests
1717
make test_race # Test with -race flag enabled
1818
make bench # Benchmark
19+
```
20+
21+
## Build
22+
23+
```sh
24+
make goreleaser # Uses goreleaser to build binaries and docker containers
1925
```

0 commit comments

Comments
 (0)