forked from nicolaka/netshoot
- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (14 loc) · 476 Bytes
/
Makefile
File metadata and controls
21 lines (14 loc) · 476 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: build-x86 build-arm64 push all
# Build Vars
IMAGENAME=nicolaka/netshoot
VERSION=0.1
.DEFAULT_GOAL := all
build-x86:
@docker build --platform linux/amd64 -t ${IMAGENAME}:${VERSION} .
build-arm64:
@docker build --platform linux/arm64 -t ${IMAGENAME}:${VERSION} .
build-all:
@docker buildx build --platform linux/amd64,linux/arm64 --output "type=image,push=false" --file ./Dockerfile .
push:
@docker push ${IMAGENAME}:${VERSION}
all: build-all push