-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (17 loc) · 703 Bytes
/
Makefile
File metadata and controls
23 lines (17 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
BUILDX_VER=v0.29.1
IMAGE_NAME=syepes/network_exporter
VERSION?=latest
install:
mkdir -vp ~/.docker/cli-plugins/ ~/dockercache
curl --silent -L "https://github.com/docker/buildx/releases/download/${BUILDX_VER}/buildx-${BUILDX_VER}.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
chmod a+x ~/.docker/cli-plugins/docker-buildx
prepare: install
docker buildx create --use
build:
docker buildx build --platform linux/amd64,linux/arm/v7,linux/arm64/v8 -t ${IMAGE_NAME}:${VERSION} .
build-push:
docker buildx build --push --platform linux/amd64,linux/arm/v7,linux/arm64/v8 -t ${IMAGE_NAME}:${VERSION} .
build-local:
goreleaser release --skip=publish --snapshot --clean
lint:
golangci-lint run