mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-16 21:45:39 +01:00
14 lines
427 B
Docker
14 lines
427 B
Docker
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
|