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

Compare commits

..

18 Commits

Author SHA1 Message Date
Justin McCarthy
18c017009d increment patch for release 2018-05-10 16:43:21 -07:00
Justin McCarthy
ac11f4ac9d introduce brew make target 2018-05-10 16:43:02 -07:00
Justin McCarthy
911b84dedc increment minor for release 2018-05-10 00:39:06 -07:00
Justin McCarthy
d212e627fd minor release 2018-05-10 00:38:38 -07:00
Justin McCarthy
29edb6c90a intro minor release 2018-05-10 00:38:19 -07:00
Justin McCarthy
62d05e3358 increment patch for release 2018-05-10 00:37:05 -07:00
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
2 changed files with 23 additions and 6 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,12 +10,22 @@ 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
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-darwin-amd64 ./cmd/comply
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o dist/comply-$(VERSION)-linux-amd64 ./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
brew: clean
$(eval VERSION := $(shell cat version))
$(eval LDFLAGS := -ldflags='-X "cli.Version=$(VERSION)"')
mkdir bin
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -gcflags=-trimpath=$(GOPATH) -asmflags=-trimpath=$(GOPATH) $(LDFLAGS) -o bin/comply ./cmd/comply
clean:
rm -rf bin
rm -rf dist
rm -f comply
@@ -46,6 +54,7 @@ cleanse:
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 \
@@ -71,8 +80,16 @@ release: dist release-deps
patch-release: patch release
minor-release: minor release
patch: clean gitsem
gitsem patch
gitsem -m "increment patch for release" patch
git push
git push origin --tags
minor: clean gitsem
gitsem -m "increment minor for release" minor
git push
git push origin --tags
release-deps: gitsem gh-release

View File

@@ -1 +1 @@
1.0.6
1.1.1