NOCACHE in makefile
This commit is contained in:
parent
f0b5724a34
commit
30106d26b8
12
Makefile
12
Makefile
|
@ -1,9 +1,17 @@
|
||||||
export PLATFORM := linux/amd64
|
export PLATFORM := linux/amd64
|
||||||
export BUILDER := $(shell which docker)
|
export BUILDER := $(shell which docker)
|
||||||
export REGISTRY := stagex
|
export REGISTRY := stagex
|
||||||
|
export NOCACHE ?= 0
|
||||||
export MIRRORS := \
|
export MIRRORS := \
|
||||||
https://git.distrust.co/stagex \
|
git.distrust.co \
|
||||||
stagex
|
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 || :)
|
clean_logs := $(shell rm *.log 2>&1 >/dev/null || :)
|
||||||
|
|
||||||
|
|
Reference in New Issue