gitlab-ci: set repository for sysroot
This commit is contained in:
parent
6e34e52f8d
commit
a3d3d61749
1 changed files with 6 additions and 1 deletions
|
@ -110,7 +110,12 @@ set_repositories_for() {
|
||||||
[ "$repo" = "$target_repo" ] && break
|
[ "$repo" = "$target_repo" ] && break
|
||||||
done
|
done
|
||||||
doas sh -c "printf '%s\n' $repos >> /etc/apk/repositories"
|
doas sh -c "printf '%s\n' $repos >> /etc/apk/repositories"
|
||||||
doas apk update
|
doas apk update || true
|
||||||
|
if [ "$CI_ALPINE_TARGET_ARCH" != "$ARCH" ]; then
|
||||||
|
doas sh -c "printf '%s\n' $repos >> $HOME/sysroot-$CI_ALPINE_TARGET_ARCH/etc/apk/repositories"
|
||||||
|
doas cp -R /etc/apk/keys/* $HOME/sysroot-$CI_ALPINE_TARGET_ARCH/etc/apk/keys/.
|
||||||
|
doas apk --root=$HOME/sysroot-$CI_ALPINE_TARGET_ARCH update || true
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
apply_offset_limit() {
|
apply_offset_limit() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue