Added support for building official docker images. (#76)

This commit is contained in:
Joe Testa
2020-10-20 11:31:50 -04:00
parent 83d8014a50
commit 17780ff194
5 changed files with 44 additions and 0 deletions

13
Makefile.docker Normal file
View File

@ -0,0 +1,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