-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
33 lines (27 loc) · 814 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Generic Makefile for Docker images
# Copyright (C) 2018-2024 Peter Mosmans [Go Forward]
# SPDX-License-Identifier: GPL-3.0-or-later
# TAG != git tag|tail -1
TAG = "latest"
NAME != basename $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
DOCKER_IMG := gofwd/$(NAME):$(TAG)
# Recipes that aren't filenames: This ensures that they always will be executed
.PHONY: image test
# Build image
image:
@echo "Building $(DOCKER_IMG)..." && \
DOCKER_BUILDKIT=1 docker build . -t $(DOCKER_IMG)
test:
ansible-lint --version && \
curl --version && \
cyclonedx-py --help && \
detect-secrets --version && \
grype --version
jwt_tool.py -h && \
nikto.pl -Version && \
nmap --version && \
npm outdated --global && \
pylint --version && \
sonar-scanner --version && \
ssh-audit --help && \
yamllint --version