1
0
mirror of https://github.com/strongdm/comply synced 2025-12-15 02:34:13 +00:00

Compare commits

...

18 Commits

Author SHA1 Message Date
Justin McCarthy
e08d88ee49 increment patch for release 2018-05-10 00:34:50 -07:00
Justin McCarthy
80bdc44f14 ordering 2018-05-10 00:34:39 -07:00
Justin McCarthy
41dbf7ca19 message 2018-05-10 00:34:10 -07:00
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
2 changed files with 25 additions and 10 deletions

View File

@@ -1,8 +1,6 @@
.DEFAULT_GOAL := comply
GO_SOURCES := $(shell find . -name '*.go')
THEME_SOURCES := $(shell find themes)
VERSION := $(shell git describe --tags --always --dirty="-dev")
LDFLAGS := -ldflags='-X "cli.Version=$(VERSION)"'
assets: $(THEME_SOURCES)
go-bindata-assetfs -pkg theme -prefix themes themes/...
@@ -12,10 +10,13 @@ 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 $(LDFLAGS) -o dist/comply-$(VERSION)-darwin-amd64 github.com/strongdm/comply/cmd/comply
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build $(LDFLAGS) -o dist/comply-$(VERSION)-linux-amd64 github.com/strongdm/comply/cmd/comply
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
@@ -44,7 +45,8 @@ cleanse:
git push -f origin master
git gc --aggressive --prune=all
release: dist gh-release
release: dist release-deps
$(eval VERSION := $(shell git describe --tags --always --dirty="-dev"))
github-release release \
--security-token $$GH_LOGIN \
--user strongdm \
@@ -57,16 +59,28 @@ release: dist gh-release
--user strongdm \
--repo comply \
--tag $(VERSION) \
--name comply-$(VERSION)-darwin-amd64 \
--file dist/comply-$(VERSION)-darwin-amd64
--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 \
--file dist/comply-$(VERSION)-linux-amd64
--name comply-$(VERSION)-linux-amd64.tgz \
--file dist/comply-$(VERSION)-linux-amd64.tgz
patch-release: patch release
patch: clean gitsem
gitsem -m "increment patch for release" 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.13