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 2
2
build
3
3
release
4
4
vendor
5
+ registrator
5
6
6
7
dist /
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
4
2
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
10
6
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
15
10
11
+ .PHONY : test
12
+ test :
13
+ go test -race ./...
16
14
17
- .PHONY : build dev
15
+ .PHONY : all
16
+ all : registrator check test
You can’t perform that action at this time.
0 commit comments