2020-10-20 17:31:50 +02:00
|
|
|
VERSION = $(shell grep VERSION src/ssh_audit/globals.py | grep -E -o "'(v.*)'" | tr -d "'")
|
|
|
|
ifeq ($(VERSION),)
|
|
|
|
$(error "could not determine version!")
|
|
|
|
endif
|
|
|
|
|
|
|
|
all:
|
2023-09-07 04:32:18 +02:00
|
|
|
docker buildx build \
|
|
|
|
--platform linux/amd64,linux/arm64,linux/arm/v7 \
|
|
|
|
--tag positronsecurity/ssh-audit:${VERSION} \
|
|
|
|
--tag positronsecurity/ssh-audit:latest \
|
|
|
|
.
|
|
|
|
|
|
|
|
local-build:
|
2020-10-20 17:31:50 +02:00
|
|
|
docker build -t positronsecurity/ssh-audit:${VERSION} .
|
|
|
|
|
|
|
|
upload:
|
|
|
|
docker login
|
2023-09-07 04:32:18 +02:00
|
|
|
docker buildx build \
|
|
|
|
--platform linux/amd64,linux/arm64,linux/arm/v7 \
|
|
|
|
--tag positronsecurity/ssh-audit:${VERSION} \
|
|
|
|
--tag positronsecurity/ssh-audit:latest \
|
|
|
|
--push \
|
|
|
|
.
|