1
0
mirror of https://github.com/strongdm/comply synced 2025-12-15 10:43:47 +00:00

Compare commits

...

16 Commits

Author SHA1 Message Date
Justin McCarthy
182aa3d9ed v1.0.12 2018-05-10 00:32:15 -07:00
Justin McCarthy
57ea96e4c9 define version immediately before use 2018-05-10 00:31:58 -07:00
Justin McCarthy
5a58efd983 v1.0.11 2018-05-10 00:28:05 -07:00
Justin McCarthy
68a67cb50b v1.0.10 2018-05-10 00:26:20 -07:00
Justin McCarthy
06afa72dee redefine verison 2018-05-10 00:26:08 -07:00
Justin McCarthy
fc9c908a42 v1.0.9 2018-05-10 00:22:02 -07:00
Justin McCarthy
ec29b57842 v1.0.8 2018-05-10 00:21:37 -07:00
Justin McCarthy
9fb5b3e04f push 2018-05-10 00:21:04 -07:00
Justin McCarthy
2eac1512cb v1.0.7 2018-05-10 00:20:16 -07:00
Justin McCarthy
90a507963c push 2018-05-10 00:20:04 -07:00
Justin McCarthy
2a316ccdab v1.0.6 2018-05-10 00:18:34 -07:00
Justin McCarthy
d1fdd377ad version string 2018-05-10 00:18:23 -07:00
Justin McCarthy
7814e52b6b gitsem 2018-05-10 00:17:46 -07:00
Justin McCarthy
939349df4a gitsem 2018-05-10 00:17:00 -07:00
Justin McCarthy
1c903416d4 tgz releases 2018-05-10 00:12:00 -07:00
Justin McCarthy
af48939756 release makefile 2018-05-09 23:53:17 -07:00
2 changed files with 52 additions and 0 deletions

View File

@@ -9,6 +9,18 @@ assets: $(THEME_SOURCES)
comply: assets $(GO_SOURCES)
go build github.com/strongdm/comply/cmd/comply
dist: clean
$(eval VERSION := $(shell git describe --tags --always --dirty="-dev"))
$(eval LDFLAGS := -ldflags='-X "cli.Version=$(VERSION)"')
mkdir dist
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-darwin-amd64 github.com/strongdm/comply/cmd/comply
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-linux-amd64 github.com/strongdm/comply/cmd/comply
cd dist && tar -czvf comply-$(VERSION)-darwin-amd64.tgz comply-$(VERSION)-darwin-amd64
cd dist && tar -czvf comply-$(VERSION)-linux-amd64.tgz comply-$(VERSION)-linux-amd64
clean:
rm -rf dist
rm -f comply
install: assets $(GO_SOURCES)
go install github.com/strongdm/comply/cmd/comply
@@ -33,3 +45,42 @@ cleanse:
git push -f origin master
git gc --aggressive --prune=all
release: dist release-deps
$(eval VERSION := $(shell git describe --tags --always --dirty="-dev"))
github-release release \
--security-token $$GH_LOGIN \
--user strongdm \
--repo comply \
--tag $(VERSION) \
--name $(VERSION)
github-release upload \
--security-token $$GH_LOGIN \
--user strongdm \
--repo comply \
--tag $(VERSION) \
--name comply-$(VERSION)-darwin-amd64.tgz \
--file dist/comply-$(VERSION)-darwin-amd64.tgz
github-release upload \
--security-token $$GH_LOGIN \
--user strongdm \
--repo comply \
--tag $(VERSION) \
--name comply-$(VERSION)-linux-amd64.tgz \
--file dist/comply-$(VERSION)-linux-amd64.tgz
patch-release: patch release
patch: clean gitsem
gitsem patch
git push
git push origin --tags
release-deps: gitsem gh-release
gitsem:
go get -u github.com/Clever/gitsem
gh-release:
go get -u github.com/aktau/github-release

1
VERSION Normal file
View File

@@ -0,0 +1 @@
1.0.12