Skip to content

Commit 06a8f24

Browse files
committed
Add goreleaser
1 parent a78cef4 commit 06a8f24

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ RUN \
4747
&& go get github.com/acroca/[email protected] && go get github.com/ramya-rao-a/go-outline@7182a932836a71948db4a81991a494751eccfe77 \
4848
# --> GolangCI-lint
4949
&& curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sed 's/tar -/tar --no-same-owner -/g' | sh -s -- -b $(go env GOPATH)/bin \
50+
# --> Go releaser
51+
&& curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- "v0.132.1"\
5052
# --> Install junit converter
5153
&& go get github.com/jstemmer/[email protected] \
5254
&& rm -rf /go/src/ && rm -rf /go/pkg

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/devcontainer
1+
/devcontainer
2+
/dist

.goreleaser.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
builds:
2+
- env:
3+
- CGO_ENABLED=0
4+
goos:
5+
- linux
6+
- darwin
7+
- windows
8+
goarch:
9+
- 386
10+
- amd64
11+
main: ./cmd/devcontainer/
12+
ldflags:
13+
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
14+
changelog:
15+
sort: asc
16+
filters:
17+
exclude:
18+
- '^docs:'
19+
- '^test:'

0 commit comments

Comments
 (0)