diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:07:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:07:52 +0000 |
commit | f0f453c916e279980df981c1e1dee0d167dc124e (patch) | |
tree | d09973c9f173820ade2dc814467d3e57df8a042d /Makefile.docker | |
parent | Initial commit. (diff) | |
download | ssh-audit-upstream.tar.xz ssh-audit-upstream.zip |
Adding upstream version 3.1.0.upstream/3.1.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | Makefile.docker | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.docker b/Makefile.docker new file mode 100644 index 0000000..b753f5b --- /dev/null +++ b/Makefile.docker @@ -0,0 +1,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 \ + . |