summaryrefslogtreecommitdiffstats
path: root/Makefile.docker
blob: b753f5b40579b01d417665047c859cb04a527156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
VERSION = $(shell grep VERSION src/ssh_audit/globals.py | grep -E -o "'(v.*)'" | tr -d "'")
ifeq ($(VERSION),)
  $(error "could not determine version!")
endif

all:
	docker build -t positronsecurity/ssh-audit:${VERSION} .

upload:
	docker login
	docker buildx build \
		--platform linux/amd64,linux/arm64,linux/arm/v7 \
		--tag positronsecurity/ssh-audit:${VERSION} \
		--tag positronsecurity/ssh-audit:latest \
		--push \
		.