chore: move source code to root folder
This commit is contained in:
parent
c3b6fb3b07
commit
ae1285dc66
10
Makefile
10
Makefile
@ -1,23 +1,23 @@
|
|||||||
go/dependencies:
|
go/dependencies:
|
||||||
cd src/ && go mod download
|
go mod download
|
||||||
|
|
||||||
# Make sure no unnecessary dependencies are present
|
# Make sure no unnecessary dependencies are present
|
||||||
go/checkDependencies:
|
go/checkDependencies:
|
||||||
cd src/ && go mod tidy -v
|
go mod tidy -v
|
||||||
git diff-index --quiet HEAD
|
git diff-index --quiet HEAD
|
||||||
|
|
||||||
# Standard go test
|
# Standard go test
|
||||||
go/test:
|
go/test:
|
||||||
cd src/ && go test ./... -v -race
|
go test ./... -v -race
|
||||||
|
|
||||||
go/fmt:
|
go/fmt:
|
||||||
cd src/ && go fmt ./...
|
go fmt ./...
|
||||||
|
|
||||||
go/checkFmt:
|
go/checkFmt:
|
||||||
test -z $(shell gofmt -l .)
|
test -z $(shell gofmt -l .)
|
||||||
|
|
||||||
build/docker:
|
build/docker:
|
||||||
cd src/ && go build -o fail2ban_exporter \
|
go build -o fail2ban_exporter \
|
||||||
-ldflags '-X main.version=$(shell git describe --tags) -X main.commit=${shell git rev-parse HEAD} -X "main.date=${shell date --rfc-3339=seconds}" -X main.builtBy=docker' exporter.go
|
-ldflags '-X main.version=$(shell git describe --tags) -X main.commit=${shell git rev-parse HEAD} -X "main.date=${shell date --rfc-3339=seconds}" -X main.builtBy=docker' exporter.go
|
||||||
|
|
||||||
docker/build/latest:
|
docker/build/latest:
|
||||||
|
Loading…
Reference in New Issue
Block a user