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.
This commit is contained in:
DevTekVE
2024-08-03 20:52:55 +02:00
parent 89005e08c4
commit 84c3668c3a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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/'
+1
View File
@@ -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 .