Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
migrate to goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
psycofdj committed Jan 22, 2021
1 parent ed2ddf3 commit a588447
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ _testmain.go

*.exe
*.test
/dist
30 changes: 30 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
project_name: go-cloudstack

builds:
-
&template
id: binary
skip: true
binary: mdproxy4cs
env:
- CGO_ENABLED=0
ldflags:
- -s
- -w
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.FullCommit}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildUser={{.Env.USER}}
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
goos:
- linux
- darwin
goarch:
- amd64

release:
github:
owner: orange-cloudfoundry
name: go-cloudstack
prerelease: auto
name_template: '{{.Tag}}'

0 comments on commit a588447

Please sign in to comment.