packagebuild/build_arch.sh
Sebastian Tobie 3eb72c1a14 updated the images
- added openbao
- added my repos to debian and arch
2025-05-03 20:34:59 +02:00

24 Zeilen
1,1 KiB
Bash
Ausführbare Datei

#!/bin/sh
. ./common.sh
set -e
arch_install() {
buildah run --user 0:0 "$1" curl -Lo /tmp/package.pkg.zst "$2"
buildah run --user 0:0 "$1" pacman --noconfirm -U "/tmp/package.pkg.zst"
}
init_container "archlinux" "docker.io/archlinux"
buildah run --user 0:0 "archlinux" pacman-key --init
buildah run --user 0:0 "archlinux" pacman-key --populate
buildah run --user 0:0 "archlinux" tee -a /etc/pacman.conf <<EOF
[packete.gitea.sebastian-tobie.de]
Server = https://gitea.sebastian-tobie.de/api/packages/packete/arch/packete/$$arch
SigLevel = Required
EOF
curl -s https://gitea.sebastian-tobie.de/api/packages/packete/arch/repository.key | buildah run --user 0:0 "archlinux" pacman-key -a -
buildah run --user 0:0 archlinux pacman-key --lsign-key 'packete@noreply.gitea.sebastian-tobie.de'
buildah run --user 0:0 "archlinux" pacman --noconfirm -Syu nodejs git base-devel
arch_install "$container" "https://github.com/openbao/openbao/releases/download/v${openbao_version}/bao_${openbao_version}_linux_amd64.pkg.tar.zst"
commit "archlinux" "oci:archlinux"
du -sh archlinux