Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
builds:
- env:
- CGO_ENABLED=0
flags:
- -trimpath
- -buildvcs=false
ldflags:
- -s -w -buildid= -X main.version={{ .Version }}
goos:
- linux
- windows
- darwin
upx:
- enabled: true
compress: best
lzma: true
goos:
- linux

archives:
- id: binary
format: binary
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY . .
ENV GOTOOLCHAIN=local

RUN apk add --no-cache ca-certificates && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags '-w' ./gitlab-ci-validate.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -buildvcs=false -tags netgo -ldflags '-s -w -buildid=' ./gitlab-ci-validate.go


FROM scratch
Expand Down