mirror of
https://github.com/umputun/reproxy.git
synced 2024-11-24 08:12:31 +02:00
add build target
This commit is contained in:
parent
4c9d9d5483
commit
a54a1624f4
13
Makefile
13
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
|
||||
|
@ -10,7 +10,7 @@
|
||||
</style>
|
||||
|
||||
<article>
|
||||
<h1>Reverse proxy and nothing more</h1>
|
||||
<h1>Simple Reverse Proxy</h1>
|
||||
<div>
|
||||
<p>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.</p>
|
||||
<ul>
|
||||
|
Loading…
Reference in New Issue
Block a user