ci-scripts/pmb/update
Vasiliy Doylov 0ce1427ad9
Move pmbootstrap update
Moved from CI to update script

Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
2025-06-17 13:28:06 +03:00

23 lines
1.1 KiB
Bash
Executable file

#!/bin/sh
echo "===Install dependencies==="
apk add python3 losetup cmd:kpartx openssl
echo "===Clone repos==="
git clone https://git.nekocwd.duckdns.org/Administration/pmbootstrap-meow /data/pmbootstrap || true
git clone https://git.nekocwd.duckdns.org/Mirror/pmaports /data/pmaports || true
git clone https://git.nekocwd.duckdns.org/Mirror/aports /data/aports || true
echo "===Fetch latest changes==="
git -C /data/pmbootstrap fetch
git -C /data/pmaports fetch
git -C /data/aports fetch
git -C /data/pmbootstrap reset --hard origin/master
git -C /data/pmaports reset --hard origin/master
git -C /data/aports reset --hard origin/master
echo "===Init pmbootstrap==="
yes '' | pmbootstrap init
echo "Configure pmbootstrap to use internal mirrors"
pmbootstrap config mirrors.alpine https://mirror.nekocwd.duckdns.org/alpine/
pmbootstrap config mirrors.pmaports https://mirror.nekocwd.duckdns.org/postmarketos/
pmbootstrap config mirrors.systemd https://mirror.nekocwd.duckdns.org/postmarketos/extra-repos/systemd/
echo "===Zapping bootstrap==="
pmbootstrap -y zap -t -o -n -p -d
echo "===Pmbootstrap updated <3==="