Files
bifrost-registry/registry.mk
T
2025-05-08 16:21:38 +07:00

14 lines
500 B
Makefile

REGISTRY_PATH = $(shell pwd)/registry
REGISTRY_REPO = git.nextzenos.com/CDN/bifrost-registry.git
update_registry:
( cd $(REGISTRY_PATH) && \
@read -p "Enter your commit message: " commit_msg; \
git pull https://$(GIT_USER):$(GIT_PASS)@$(REGISTRY_REPO) || true; \
git add . && \
git commit -m "$${commit_msg:-update}" || true; \
git push https://$(GIT_USER):$(GIT_PASS)@$(REGISTRY_REPO) || true )
package_registry:
(cd $(REGISTRY_PATH) && \
zip -r registry.zip *.json -x .gitignore .git .mk)