Skip to content
Snippets Groups Projects
Commit 1aaf885d authored by Jose Raul Barreras's avatar Jose Raul Barreras
Browse files

fix: Makefile linter problem

parent 3ab0e1ec
Branches
No related tags found
4 merge requests!5Develop,!4Working copy,!3Static code analysis on xls branch,!1WIP: Static code analysis on xls branch
......@@ -78,19 +78,18 @@ IMAGES_TO_SCAN = $(shell docker images --format '{{.Repository}}:{{.Tag}}' | gre
security:
@docker login -u ${TENABLE_IO_ACCESS_KEY} -p ${TENABLE_IO_SECRET_KEY} registry.cloud.tenable.com
@for image in $(IMAGES_TO_SCAN); do \
tenable_name=`echo $$image | cut -d "/" -f 2`; \
echo "$$image ---> $$tenable_name"; \
docker tag $$image registry.cloud.tenable.com/$$tenable_name; \
docker push registry.cloud.tenable.com/$$tenable_name; \
docker tag $$image registry.cloud.tenable.com/`echo $$image | cut -d "/" -f 2`; \
docker push registry.cloud.tenable.com/`echo $$image | cut -d "/" -f 2`; \
done
delete_dangling_images:
@echo "Removing dangling images"
@docker image prune -f
help:
@echo -e "make [all] \t # Creates all the images"
@echo -e "make <TARGET> \t # Creates an specific image"
@echo -e "make clean \t # Cleanup"
@echo -e "make [all] \n\t # Creates all the images"
@echo -e "make <TARGET> \n\t # Creates an specific image"
@echo -e "make clean \n\t # Cleanup"
@echo -e "make security \n\t # Send the images to Tenable. Use env variables TENABLE_IO_ACCESS_KEY and TENABLE_IO_SECRET_KEY"
debug:
@echo -e "DOCKERFILES: \t $(DOCKERFILES)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment