gitlab-ci: use git-annex instead of git-lfs
This commit is contained in:
parent
2fe9942076
commit
583e4c78d5
3 changed files with 8 additions and 4 deletions
|
@ -36,6 +36,7 @@ lint:
|
||||||
- keys/
|
- keys/
|
||||||
- logs/
|
- logs/
|
||||||
expire_in: 7 days
|
expire_in: 7 days
|
||||||
|
when: always
|
||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
|
|
||||||
|
@ -56,6 +57,7 @@ lint:
|
||||||
- keys/
|
- keys/
|
||||||
- logs/
|
- logs/
|
||||||
expire_in: 7 days
|
expire_in: 7 days
|
||||||
|
when: always
|
||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
|
|
||||||
|
@ -97,7 +99,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:
|
||||||
|
|
|
@ -8,7 +8,7 @@ set -eu -o pipefail
|
||||||
|
|
||||||
readonly APORTSDIR=$CI_PROJECT_DIR
|
readonly APORTSDIR=$CI_PROJECT_DIR
|
||||||
readonly REPOS="cross backports user testing community"
|
readonly REPOS="cross backports user testing community"
|
||||||
readonly ALPINE_REPOS="main community testing"
|
readonly ALPINE_REPOS="main community"
|
||||||
readonly ARCH=$(apk --print-arch)
|
readonly ARCH=$(apk --print-arch)
|
||||||
# gitlab variables
|
# gitlab variables
|
||||||
readonly BASEBRANCH=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
|
readonly BASEBRANCH=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
|
||||||
|
|
|
@ -28,9 +28,11 @@ if [ -d $HOME/repo-apk ]; then
|
||||||
git -C $HOME/repo-apk checkout $BASEBRANCH
|
git -C $HOME/repo-apk checkout $BASEBRANCH
|
||||||
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 $BASEBRANCH $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 -type f -name "*.apk"); do
|
for i in $(find packages -type f -name "*.apk"); do
|
||||||
install -vDm644 $i ${i/packages/$HOME\/repo-apk}
|
install -vDm644 $i ${i/packages/$HOME\/repo-apk}
|
||||||
done
|
done
|
||||||
|
@ -53,4 +55,4 @@ done
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue