mirror of
https://github.com/strongdm/comply
synced 2025-12-15 19:00:50 +00:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a58efd983 | ||
|
|
68a67cb50b | ||
|
|
06afa72dee | ||
|
|
fc9c908a42 | ||
|
|
ec29b57842 | ||
|
|
9fb5b3e04f | ||
|
|
2eac1512cb | ||
|
|
90a507963c | ||
|
|
2a316ccdab | ||
|
|
d1fdd377ad | ||
|
|
7814e52b6b | ||
|
|
939349df4a | ||
|
|
1c903416d4 | ||
|
|
af48939756 |
52
Makefile
52
Makefile
@@ -1,6 +1,8 @@
|
|||||||
.DEFAULT_GOAL := comply
|
.DEFAULT_GOAL := comply
|
||||||
GO_SOURCES := $(shell find . -name '*.go')
|
GO_SOURCES := $(shell find . -name '*.go')
|
||||||
THEME_SOURCES := $(shell find themes)
|
THEME_SOURCES := $(shell find themes)
|
||||||
|
VERSION := $(shell git describe --tags --always --dirty="-dev")
|
||||||
|
LDFLAGS := -ldflags='-X "cli.Version=$(VERSION)"'
|
||||||
|
|
||||||
assets: $(THEME_SOURCES)
|
assets: $(THEME_SOURCES)
|
||||||
go-bindata-assetfs -pkg theme -prefix themes themes/...
|
go-bindata-assetfs -pkg theme -prefix themes themes/...
|
||||||
@@ -9,6 +11,16 @@ assets: $(THEME_SOURCES)
|
|||||||
comply: assets $(GO_SOURCES)
|
comply: assets $(GO_SOURCES)
|
||||||
go build github.com/strongdm/comply/cmd/comply
|
go build github.com/strongdm/comply/cmd/comply
|
||||||
|
|
||||||
|
dist: clean
|
||||||
|
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)
|
install: assets $(GO_SOURCES)
|
||||||
go install github.com/strongdm/comply/cmd/comply
|
go install github.com/strongdm/comply/cmd/comply
|
||||||
|
|
||||||
@@ -33,3 +45,43 @@ cleanse:
|
|||||||
git push -f origin master
|
git push -f origin master
|
||||||
git gc --aggressive --prune=all
|
git gc --aggressive --prune=all
|
||||||
|
|
||||||
|
release: dist release-deps
|
||||||
|
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
|
||||||
|
$(eval VERSION = $(shell git describe --tags --always --dirty="-dev"))
|
||||||
|
echo "--> $(VERSION)"
|
||||||
|
|
||||||
|
release-deps: gitsem gh-release
|
||||||
|
|
||||||
|
gitsem:
|
||||||
|
go get -u github.com/Clever/gitsem
|
||||||
|
|
||||||
|
gh-release:
|
||||||
|
go get -u github.com/aktau/github-release
|
||||||
Reference in New Issue
Block a user