NOCACHE in makefile

This commit is contained in:
Lance Vick 2024-01-29 16:23:48 -08:00
parent f0b5724a34
commit 30106d26b8
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 10 additions and 2 deletions

View File

@ -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 || :)