blob: b1609d5cbec39505988bc85edbdabe44beecad5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
cd "$(dirname "$(readlink -e "$0")")"
if [ "x$1" = 'x--pull' ]; then
shift
git pull --ff-only
fi
key_id='5FDCA472AB93292BC678FD59255A76DB9A12601A'
pkill keyboxd
curl -Ss "https://archlinux32.org/keys.php?k=${key_id}" | gpg --import
gpg --recv-keys ${key_id}
gpg -a --export-secret-keys ${key_id} > keys
for i in {1..5}; do
printf 'Server = http://pkgcache.eckner.net/arch/$arch/$repo\n'
done >mirrorlist
docker buildx build "$@" -f slave.Dockerfile -t arch32-slave . || exit $?
rm keys
rm mirrorlist
|