diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-07 06:46:51 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-07 06:46:51 +0200 |
commit | e4de321c6e96eaa24639ed05befcea62dc3b3182 (patch) | |
tree | 0b59a94c5d752f818f7a5da25259cedd4d57507e /build-image | |
download | arch32-slave-e4de321c6e96eaa24639ed05befcea62dc3b3182.tar.xz |
initial commit
Diffstat (limited to 'build-image')
-rwxr-xr-x | build-image | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/build-image b/build-image new file mode 100755 index 0000000..d3a2af0 --- /dev/null +++ b/build-image @@ -0,0 +1,22 @@ +#!/bin/bash + +if [ "x$1" = 'x--pull' ]; then + shift + git pull --ff-only +fi + +key_id='5FDCA472AB93292BC678FD59255A76DB9A12601A' + +pkill keyboxd +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 + |