From 44c25baff0be45bb182777e64868802282091990 Mon Sep 17 00:00:00 2001 From: Vladimir Milosevic Date: Mon, 16 Sep 2024 08:40:11 +0000 Subject: [PATCH] Clone project --- .github/Dockerfile.ci | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/Dockerfile.ci b/.github/Dockerfile.ci index b413abb18..db9b31edf 100644 --- a/.github/Dockerfile.ci +++ b/.github/Dockerfile.ci @@ -16,9 +16,11 @@ RUN mkdir -p $BUILD_DIR && \ mkdir -p $TTMLIR_TOOLCHAIN_DIR && \ mkdir -p $TTFORGE_TOOLCHAIN_DIR -# Clone the project and update submodules before the docker build -COPY . $BUILD_DIR/$PROJECT_NAME -WORKDIR $BUILD_DIR/$PROJECT_NAME +# Clone the project and update submodules +RUN git clone https://github.com/tenstorrent/$PROJECT_NAME.git $BUILD_DIR/$PROJECT_NAME && \ + cd $BUILD_DIR/$PROJECT_NAME && \ + git checkout $GIT_SHA && \ + git submodule update --init --recursive -f # Build the toolchain WORKDIR $BUILD_DIR/$PROJECT_NAME