-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.goreleaser.yml
More file actions
33 lines (33 loc) · 1.05 KB
/
.goreleaser.yml
File metadata and controls
33 lines (33 loc) · 1.05 KB
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
version: 2
brews:
- name: gitversion
homepage: https://github.com/screwdriver-cd/gitversion
description: A helper for bumping versions via git tags.
commit_msg_template: "[skip ci] Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
directory: Formula
repository:
branch: master
name: gitversion
owner: screwdriver-cd
test: |
system "#{bin}/gitversion", "--version"
builds:
- binary: gitversion
# Build for Linux and OSX
goos:
- linux
- darwin
goarch:
- amd64
- arm64
# Include the default settings from https://goreleaser.com/#builds
# Also include static compilation
ldflags: -s -w -X main.VERSION={{.Version}} -X main.COMMIT={{.Commit}} -X main.DATE={{.Date}} -extldflags "-static"
# Ensure the binary is static
env:
- CGO_ENABLED=0
archives:
- formats: [ 'binary' ]
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
# Put the packages in the artifacts dir (but it won't eval environment variables)
dist: /sd/workspace/artifacts/dist