File tree Expand file tree Collapse file tree 4 files changed +13
-38
lines changed Expand file tree Collapse file tree 4 files changed +13
-38
lines changed Original file line number Diff line number Diff line change 22build
33release
44vendor
5+ registrator
56
67dist /
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- NAME =registrator
2- VERSION =$(shell cat VERSION)
3- DEV_RUN_OPTS ?= consul:
1+ default : all
42
5- dev :
6- docker build -f Dockerfile.dev -t $(NAME ) :dev .
7- docker run --rm \
8- -v /var/run/docker.sock:/tmp/docker.sock \
9- $(NAME ) :dev /bin/registrator $(DEV_RUN_OPTS )
3+ .PHONY : registrator
4+ registrator :
5+ CGO_ENABLED=0 go build -trimpath -o $@ * .go
106
11- build :
12- mkdir -p build
13- docker build -t $(NAME ) :$(VERSION ) .
14- docker save $(NAME ) :$(VERSION ) | gzip -9 > build/$(NAME ) _$(VERSION ) .tgz
7+ .PHONY : check
8+ check :
9+ golangci-lint run
1510
11+ .PHONY : test
12+ test :
13+ go test -race ./...
1614
17- .PHONY : build dev
15+ .PHONY : all
16+ all : registrator check test
You can’t perform that action at this time.
0 commit comments