mirror of
https://github.com/jtesta/ssh-audit.git
synced 2025-06-23 02:54:33 +02:00
Added support for building official docker images. (#76)
This commit is contained in:
13
Makefile.docker
Normal file
13
Makefile.docker
Normal 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
|
Reference in New Issue
Block a user