forked from umputun/dkll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (25 loc) · 946 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
OS=linux
ARCH=amd64
bin:
docker build -f Dockerfile.artifacts -t dkll.bin .
- @docker rm -f dkll.bin 2>/dev/null || exit 0
docker run -d --name=dkll.bin dkll.bin
docker cp dkll.bin:/artifacts/dkll.$(OS)-$(ARCH) dkll
docker rm -f dkll.bin
docker:
docker build -t umputun/dkll .
deploy:
docker build -f Dockerfile.artifacts -t dkll.bin .
- @docker rm -f dkll.bin 2>/dev/null || exit 0
- @mkdir -p bin
docker run -d --name=dkll.bin dkll.bin
docker cp dkll.bin:/artifacts/dkll.linux-amd64.tar.gz bin/dkll.linux-amd64.tar.gz
docker cp dkll.bin:/artifacts/dkll.linux-arm64.tar.gz bin/dkll.linux-arm64.tar.gz
docker cp dkll.bin:/artifacts/dkll.darwin-amd64.tar.gz bin/dkll.darwin-amd64.tar.gz
docker cp dkll.bin:/artifacts/dkll.windows-amd64.zip bin/dkll.windows-amd64.zip
docker rm -f dkll.bin
test:
cd app && go test -v -mod=vendor -race ./...
lint:
cd app && golangci-lint run --out-format=tab --tests=false ./...
.PHONY: bin