From 30106d26b89acf768e7fc14611bea75642a20835 Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Mon, 29 Jan 2024 16:23:48 -0800 Subject: [PATCH] NOCACHE in makefile --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1d2c45c..03e4061 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,17 @@ export PLATFORM := linux/amd64 export BUILDER := $(shell which docker) export REGISTRY := stagex +export NOCACHE ?= 0 export MIRRORS := \ - https://git.distrust.co/stagex \ - stagex + git.distrust.co \ + hub.docker.com + +ifeq ($(NOCACHE), 1) +NOCACHE_FLAG=--no-cache +else +NOCACHE_FLAG= +endif +export NOCACHE_FLAG clean_logs := $(shell rm *.log 2>&1 >/dev/null || :)