0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00

build(zui): add a new env to set the path to a local build of zui (#2118)

Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
This commit is contained in:
Andreea Lupu 2023-12-07 15:02:29 +02:00 committed by GitHub
parent f321fa91fe
commit 37988f13d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,7 @@ CRICTL := $(TOOLSDIR)/bin/crictl
CRICTL_VERSION := v1.26.1 CRICTL_VERSION := v1.26.1
ACTION_VALIDATOR := $(TOOLSDIR)/bin/action-validator ACTION_VALIDATOR := $(TOOLSDIR)/bin/action-validator
ACTION_VALIDATOR_VERSION := v0.5.3 ACTION_VALIDATOR_VERSION := v0.5.3
ZUI_BUILD_PATH := ""
ZUI_VERSION := commit-fad5572 ZUI_VERSION := commit-fad5572
ZUI_REPO_OWNER := project-zot ZUI_REPO_OWNER := project-zot
ZUI_REPO_NAME := zui ZUI_REPO_NAME := zui
@ -531,6 +532,11 @@ $(COSIGN):
.PHONY: ui .PHONY: ui
ui: ui:
echo $(BUILD_LABELS);\ echo $(BUILD_LABELS);\
if [ -n $(ZUI_BUILD_PATH) ]; then\
rm -rf ./pkg/extensions/build;\
cp -R $(ZUI_BUILD_PATH) ./pkg/extensions/;\
exit 0;\
fi;\
if [ -z $(ZUI_VERSION) ]; then\ if [ -z $(ZUI_VERSION) ]; then\
pwd=$$(pwd);\ pwd=$$(pwd);\
tdir=$$(mktemp -d);\ tdir=$$(mktemp -d);\