-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (31 loc) · 769 Bytes
/
Makefile
File metadata and controls
37 lines (31 loc) · 769 Bytes
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
32
33
34
35
36
37
GO_VERSION ?= 1.16
all:
go install -v ./...
checks:
go get github.com/golangci/golangci-lint/...
golangci-lint run -v
staticcheck:
go get -d ./...
go get honnef.co/go/tools/...
staticcheck ./...
update-modules:
rm -f go.mod go.sum
GO111MODULE=on go get -u -d ./...
GO111MODULE=on go mod tidy
dist:
rm -rf build
mkdir -p build
docker pull golang:${GO_VERSION}
docker run --rm \
-e GO111MODULE=on \
-e GOBIN=/tmp/bin \
-e GOCACHE=/tmp/.cache \
-u $$(id -u):$$(id -g) \
-v ${PWD}/build:/tmp/bin \
-w /go/src/github.com/tinyci/ci-runners \
-v ${PWD}:/go/src/github.com/tinyci/ci-runners \
golang:${GO_VERSION} \
go install -v ./...
tar cvzf release.tar.gz build/*
dist-image: dist
box -t tinyci/runners:latest box-builds/box-dist.rb