Move to daily archlinux build and check if there is PKGBUILD before

building
This commit is contained in:
2025-12-16 16:46:08 -05:00
parent d2b2225f13
commit f3fa6c4a26
3 changed files with 9 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
FROM docker.io/archlinux:base-devel # FROM docker.io/archlinux:base-devel
FROM quay.io/archlinux/archlinux:base-devel
LABEL Description="Container to build archlinux packages" LABEL Description="Container to build archlinux packages"

View File

@@ -4,4 +4,5 @@ build:
podman build -t aur_builder:latest -t aur_builder:`date -I` . podman build -t aur_builder:latest -t aur_builder:`date -I` .
pull: pull:
podman pull docker.io/archlinux:base-devel # podman pull docker.io/archlinux:base-devel
podman pull quay.io/archlinux/archlinux:base-devel

5
run.sh
View File

@@ -2,6 +2,11 @@
set -xeuo pipefail set -xeuo pipefail
if [[ ! -f /w/PKGBUILD ]]; then
echo "Missing PKGBUILD in /w"
exit 1
fi
# /etc/hosts is managed by podman. Copying or editing with `sed -i` does not seem to work. Only appendig works # /etc/hosts is managed by podman. Copying or editing with `sed -i` does not seem to work. Only appendig works
# podman sets up 169.254.1.2 to be the ip of the host # podman sets up 169.254.1.2 to be the ip of the host
sudo sh -c 'echo "169.254.1.2 archmirror.i.balki.me" >> /etc/hosts' sudo sh -c 'echo "169.254.1.2 archmirror.i.balki.me" >> /etc/hosts'