mirror of
https://github.com/umputun/reproxy.git
synced 2025-02-16 18:34:30 +02:00
by @akellbl4 * make cool site for reproxy * remove meta tags with images * fix dark theme * flix styles for sidebar nav * add scroll in sidebar * fix dark theme * fix markdown * remove package lock * add package lock to ignore * add update date and edit button * add build command * move target to public * add build * use gitignore * add logos * Changes - add meta - add close button * add style for code tag * fix favicon color in safari * add logo styles * update favicon * add classic ico favicon * update touch icon * fix sharing images * fix logo * move data to site data file * add fancy mate glass effect on header * make readme as site base * update logo update logo * add stretching width for the content * add dockerfile * fix dark theme bugs * remove usless props * fix logo * fix node version * replce logo for the site * fix path to logo in readme * add more space on logo in readme * fix logo size in readme
30 lines
796 B
Makefile
30 lines
796 B
Makefile
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:master .
|
|
|
|
dist:
|
|
- @mkdir -p dist
|
|
docker build -f Dockerfile.artifacts -t reproxy.bin .
|
|
- @docker rm -f reproxy.bin 2>/dev/null || exit 0
|
|
docker run -d --name=reproxy.bin reproxy.bin
|
|
docker cp reproxy.bin:/artifacts dist/
|
|
docker rm -f reproxy.bin
|
|
|
|
race_test:
|
|
cd app && go test -race -mod=vendor -timeout=60s -count 1 ./...
|
|
|
|
build: info
|
|
- cd app && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.revision=$(REV) -s -w" -o ../dist/reproxy
|
|
|
|
build_site:
|
|
- cd site && yarn build
|
|
|
|
info:
|
|
- @echo "revision $(REV)"
|
|
|
|
.PHONY: dist docker race_test bin info
|