diff --git a/Makefile b/Makefile index 9f2b369..971a0b9 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,8 @@ +B=$(shell git rev-parse --abbrev-ref HEAD) +BRANCH=$(subst /,-,$(B)) +GITREV=$(shell git describe --abbrev=7 --always --tags) +REV=$(GITREV)-$(BRANCH)-$(shell date +%Y%m%d-%H:%M:%S) + docker: docker build -t umputun/reproxy . @@ -12,4 +17,10 @@ dist: race_test: cd app && go test -race -mod=vendor -timeout=60s -count 1 ./... -.PHONY: dist docker race_test +build: info + - cd app && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.revision=$(REV)" -o ../dist/reproxy + +info: + - @echo "revision $(REV)" + +.PHONY: dist docker race_test bin info diff --git a/docs/index.html b/docs/index.html index bec1a8e..5bd7041 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,7 +10,7 @@
-

Reverse proxy and nothing more

+

Simple Reverse Proxy

Reproxy is a minimalistic system acting as an edge server / reverse proxy for your infrastructure. It provides the only essential functionality with no bells and whistles. Setup is very straightforward and not much to configure.