Move pmbootstrap update

Moved from CI to update script

Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
Vasiliy Doylov 2025-06-17 13:28:06 +03:00
parent 3c1371c0e8
commit 0ce1427ad9
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582
3 changed files with 7 additions and 47 deletions

View file

@ -1,16 +0,0 @@
name: "PostmarketOS: clean"
run-name: "PostmarketOS: clean"
on:
schedule:
- cron: "@daily"
workflow_dispatch:
jobs:
pull-pmbootstrap:
name: Clean Pmbootstrap
runs-on: Pmbootstrap
steps:
- name: Zapping pmbootstrap
run: >
pmbootstrap -y zap -a || yes
pmbootstrap -y zap -a || yes

View file

@ -1,26 +0,0 @@
name: "PostmarketOS: build instrumentary update"
run-name: "PostmarketOS: build instrumentary update"
on:
schedule:
- cron: "@every 10m"
workflow_dispatch:
jobs:
pull-pmbootstrap:
name: Update Pmbootstrap
runs-on: Pmbootstrap
steps:
- name: Pull pmbootstrap from mirror
run: cd ${{env.PMB_PMBOOTSTRAP}} && git fetch && git reset --hard origin/master
pull-pmaports:
name: Update PostamrketOS aports
runs-on: Pmbootstrap
steps:
- name: Pull pmaports from mirror
run: cd ${{env.PMB_PMAPORTS}} && git fetch && git reset --hard origin/master
pull-aports:
name: Update Alpine aports
runs-on: Pmbootstrap
steps:
- name: Pull aports from mirror
run: cd ${{env.PMB_APORTS}} && git fetch && git reset --hard origin/master

View file

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