From 84c3668c3a991e1416e44b765bf2bbff7c212e30 Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Sat, 3 Aug 2024 20:52:55 +0200 Subject: [PATCH] Add git-lfs to CI pipeline Added `git-lfs` installation to the CI/CD pipeline in `.gitlab-ci.yml` and initialized `git lfs` in `release/ci/publish.sh`. This ensures that large files are properly handled and improves the efficiency of our build and release process. --- .gitlab-ci.yml | 2 +- release/ci/publish.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b3f1985528..a7217a325d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -162,7 +162,7 @@ build: artifacts: true before_script: - 'apk update && apk upgrade' - - 'apk add git bash openssh' + - 'apk add git bash openssh git-lfs' - 'eval $(ssh-agent -s)' - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - 'mkdir -p ~/.ssh/' diff --git a/release/ci/publish.sh b/release/ci/publish.sh index d723782934..d50267d7a7 100755 --- a/release/ci/publish.sh +++ b/release/ci/publish.sh @@ -48,6 +48,7 @@ git remote remove origin || true # ensure cleanup git remote add origin $GIT_ORIGIN #git push origin -d $DEV_BRANCH || true # Ensuring we delete the remote branch if it exists as we are wiping it out git fetch origin $DEV_BRANCH || (git checkout -b $DEV_BRANCH && git commit --allow-empty -m "sunnypilot v$VERSION release" && git push -u origin $DEV_BRANCH) +git lfs install echo "[-] committing version $VERSION T=$SECONDS" git add -f .