gitlab-ci: use git-annex instead of git-lfs

This commit is contained in:
Antoine Martin 2024-08-10 12:01:01 -04:00
parent 264c954d9b
commit a7e184bf93
Signed by: forge
GPG key ID: D62A472A4AA7D541
3 changed files with 7 additions and 5 deletions

View file

@ -69,7 +69,7 @@ push:
stage: deploy stage: deploy
script: script:
- | - |
sudo apk add abuild git-lfs findutils sudo apk add abuild git-annex findutils
export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin" export PATH="$PATH:$CI_PROJECT_DIR/.gitlab/bin"
push.sh push.sh
rules: rules:

View file

@ -81,7 +81,7 @@ get_release() {
get_qubes_release() { get_qubes_release() {
case $BASEBRANCH in case $BASEBRANCH in
r*) echo $BASEBRANCH;; r*) echo $BASEBRANCH;;
main) echo r4.3;; master) echo r4.2;;
*) die "Branch \"$BASEBRANCH\" not supported!" *) die "Branch \"$BASEBRANCH\" not supported!"
esac esac
} }

View file

@ -26,7 +26,7 @@ sudo cp $HOME/.abuild/$ABUILD_KEY_NAME.rsa.pub /etc/apk/keys/.
get_qubes_release() { get_qubes_release() {
case $BASEBRANCH in case $BASEBRANCH in
r*) echo $BASEBRANCH;; r*) echo $BASEBRANCH;;
main) echo r4.3;; master) echo r4.2;;
*) die "Branch \"$BASEBRANCH\" not supported!" *) die "Branch \"$BASEBRANCH\" not supported!"
esac esac
} }
@ -40,9 +40,11 @@ for release in $(find packages -type d -maxdepth 1 -mindepth 1 -printf '%f\n');
git -C $HOME/repo-apk checkout $release git -C $HOME/repo-apk checkout $release
git -C $HOME/repo-apk pull --rebase git -C $HOME/repo-apk pull --rebase
else else
git clone git@lab.ilot.io:ayakael/repo-apk -b $release $HOME/repo-apk git clone forgejo@ayakael.net:forge/repo-apk.git -b $BASEBRANCH $HOME/repo-apk
fi fi
git -C $HOME/repo-apk annex sync --content
for i in $(find packages/$release -type f -name "*.apk"); do for i in $(find packages/$release -type f -name "*.apk"); do
install -vDm644 $i ${i/packages\/$release\/qubes-aports/$HOME\/repo-apk\/qubes\/$QUBES_REL} install -vDm644 $i ${i/packages\/$release\/qubes-aports/$HOME\/repo-apk\/qubes\/$QUBES_REL}
done done
@ -61,5 +63,5 @@ for release in $(find packages -type d -maxdepth 1 -mindepth 1 -printf '%f\n');
git -C $HOME/repo-apk add . git -C $HOME/repo-apk add .
git -C $HOME/repo-apk commit -m "Update from $CI_MERGE_REQUEST_IID - $CI_MERGE_REQUEST_TITLE" git -C $HOME/repo-apk commit -m "Update from $CI_MERGE_REQUEST_IID - $CI_MERGE_REQUEST_TITLE"
git -C $HOME/repo-apk push git -C $HOME/repo-apk annex sync --content
done done