Skip to content

Commit

Permalink
add: official builds: "official" target to mage
Browse files Browse the repository at this point in the history
  • Loading branch information
julian7 committed Dec 13, 2019
1 parent 6c79934 commit 36c63d4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .goshipdone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ builds:
build: archive
asset_url: "https://github.com/julian7/{{.ProjectName}}/releases/download/{{.Version}}/{{.ArchiveName}}"
publishes:
- type: github
- type: artifact
storage: github
builds:
- archive
- sha512sum
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

Added:

* official builds: "official" target to mage
* .bonsai.yml for [bonsai](https://bonsai.sensu.io/) registration

Changed:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/etdub/goparsetime v0.0.0-20160315173935-ea17b0ac3318 // indirect
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/hako/durafmt v0.0.0-20191009132224-3f39dc1ed9f4
github.com/julian7/goshipdone v0.4.0
github.com/julian7/goshipdone v0.4.1
github.com/julian7/sensulib v0.2.1
github.com/karrick/tparse v2.4.2+incompatible
github.com/magefile/mage v1.9.0
Expand Down
6 changes: 5 additions & 1 deletion magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func step(name string) {
func All() error {
step("all")
sensuasset.Register()
if err := goshipdone.Run(""); err != nil {
if err := goshipdone.Run(os.Getenv("GOSHIPDONE_CONF")); err != nil {
return err
}
return nil
Expand All @@ -38,6 +38,10 @@ func flagrel() {
os.Setenv("SKIP_PUBLISH", "false")
}

func Official() {
os.Setenv("GOSHIPDONE_CONF", ".goshipdone.yml")
}

// Alltests runs all code checks
func Alltests() {
mg.SerialDeps(Lint, Test, Cover)
Expand Down

0 comments on commit 36c63d4

Please sign in to comment.