mirror of
https://github.com/strongdm/comply
synced 2025-12-15 19:00:50 +00:00
Compare commits
15 Commits
v0.0.3-1-g
...
v1.0.14
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62d05e3358 | ||
|
|
e08d88ee49 | ||
|
|
80bdc44f14 | ||
|
|
41dbf7ca19 | ||
|
|
182aa3d9ed | ||
|
|
57ea96e4c9 | ||
|
|
5a58efd983 | ||
|
|
68a67cb50b | ||
|
|
06afa72dee | ||
|
|
fc9c908a42 | ||
|
|
ec29b57842 | ||
|
|
9fb5b3e04f | ||
|
|
2eac1512cb | ||
|
|
90a507963c | ||
|
|
2a316ccdab |
9
Makefile
9
Makefile
@@ -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,6 +10,8 @@ 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
|
||||
@@ -46,6 +46,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 \
|
||||
@@ -72,7 +73,9 @@ release: dist release-deps
|
||||
patch-release: patch release
|
||||
|
||||
patch: clean gitsem
|
||||
gitsem patch
|
||||
gitsem -m "increment patch for release" patch
|
||||
git push
|
||||
git push origin --tags
|
||||
|
||||
release-deps: gitsem gh-release
|
||||
|
||||
|
||||
Reference in New Issue
Block a user