From a1ec1ced8759866a2a0f4efe73fb109c6b83ae0c Mon Sep 17 00:00:00 2001 From: Javi Polo Date: Fri, 3 May 2024 14:35:58 +0200 Subject: [PATCH] Allow to use a different instructlab git repository via env vars Signed-off-by: Javi Polo --- training/instructlab/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/training/instructlab/Makefile b/training/instructlab/Makefile index 2fd0ab597..a33d27632 100644 --- a/training/instructlab/Makefile +++ b/training/instructlab/Makefile @@ -4,11 +4,14 @@ REGISTRY ?= quay.io REGISTRY_ORG ?= ai-lab IMAGE_TAG ?= latest +INSTRUCTLAB_GIT_REPO ?= https://github.com/instructlab/instructlab.git +INSTRUCTLAB_GIT_BRANCH ?= main + .PHONY: instructlab instructlab: @mkdir -p ../build - git clone https://github.com/instructlab/instructlab.git 2> /dev/null || true - (cd instructlab; git pull origin main) + git clone $(INSTRUCTLAB_GIT_REPO) instructlab 2> /dev/null || true + (cd instructlab; git pull origin $(INSTRUCTLAB_GIT_BRANCH)) .PHONY: nvidia nvidia: instructlab