summaryrefslogtreecommitdiffstats
path: root/Makefile.docker
blob: 3028f2ca9ddd523bf6014f02dc0c55605dab9c7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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} .
	docker tag positronsecurity/ssh-audit:${VERSION} positronsecurity/ssh-audit:latest

upload:
	docker login
	docker push positronsecurity/ssh-audit:${VERSION}
	docker push positronsecurity/ssh-audit:latest