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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ script:
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
script: make release
on:
tags: true
go: "1.13.x"
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.PHONY: build-arm
build-arm: install-packr
GOARCH=arm GOARM=7 packr build -ldflags="-s -w" ./cmd/managementd

.PHONY: install-packr
install-packr:
go get github.com/gobuffalo/packr/packr

.PHONY: build
build: install-packr
packr build -ldflags="-s -w" ./cmd/managementd

.PHONY: release
release: install-packr
curl -sL https://git.io/goreleaser | bash

.PHONY: clean
clean:
packr clean
rm managementd