image: alpine/latest packages: - coreutils - procps - py3-requests - xz sources: - "https://gitlab.com/postmarketOS/pmaports.git/" - "https://gitlab.com/postmarketOS/pmbootstrap.git/" - "https://gitlab.com/postmarketOS/build.postmarketos.org.git/" environment: BPO_TOKEN_FILE: "/home/build/.token" BPO_API_HOST: https://build.postmarketos.org BPO_JOB_NAME: get_depends BPO_WIP_REPO_URL: https://build.postmarketos.org/wip/ BPO_WIP_REPO_ARG: '-mp http://build.postmarketos.org/wip/' secrets: - 482975ec-22f7-49fd-9b54-486b0b1947c3 triggers: - action: webhook condition: failure url: https://build.postmarketos.org/api/public/update-job-status tasks: - bpo_setup: | export BPO_JOB_ID="$JOB_ID" # Switch branch and release channel mkdir -p ~/.config ( echo "[pmbootstrap]" echo "is_default_channel = False" ) > ~/.config/pmbootstrap.cfg git -C pmaports checkout v23.06 sudo ln -s "$PWD"/pmbootstrap/pmbootstrap.py /usr/bin/pmbootstrap yes "" | pmbootstrap --aports=$PWD/pmaports -q init sudo modprobe binfmt_misc sudo mount -t binfmt_misc none /proc/sys/fs/binfmt_misc branch="$(git -C pmaports rev-parse --abbrev-ref HEAD)" if [ "$branch" != v23.06 ]; then echo "ERROR: pmbootstrap switched to the wrong branch: $branch" exit 1 fi # Put apk cache into tmpfs to use less disk space (pma#1623) sudo mkdir -p /mnt/tmpfs-for-apks sudo mount -t tmpfs -o size=1500M tmpfs /mnt/tmpfs-for-apks WORK="$(pmbootstrap config work)" for arch in x86_64; do mkdir -p /mnt/tmpfs-for-apks/cache_apk_"$arch" rm -rf "$WORK"/cache_apk_"$arch" ln -s /mnt/tmpfs-for-apks/cache_apk_"$arch" "$WORK" done - v23_06_x86_64: | export BPO_JOB_ID="$JOB_ID" export ARCH=x86_64 export JSON="depends.$ARCH.json" pmbootstrap \ --aports=$PWD/pmaports \ -mp http://mirror.postmarketos.org/postmarketos/ \ repo_missing --built --arch "$ARCH" \ > "$JSON" cat "$JSON" - submit: | export BPO_JOB_ID="$JOB_ID" export BPO_API_ENDPOINT="get-depends" export BPO_ARCH="" export BPO_BRANCH=v23.06 export BPO_DEVICE="" export BPO_PAYLOAD_FILES="$(ls -1 depends.*.json)" export BPO_PAYLOAD_FILES_PREVIOUS="" export BPO_PAYLOAD_IS_JSON="0" export BPO_PKGNAME="" export BPO_UI="" export BPO_VERSION="" exec build.postmarketos.org/helpers/submit.py