2023-11-19 08:48:58 +08:00
|
|
|
#!/bin/ash
|
|
|
|
|
|
|
|
set -xeuo pipefail
|
|
|
|
|
|
|
|
if (env | grep '^MIRROR=') && [[ -n $MIRROR ]]
|
|
|
|
then
|
|
|
|
sed -i "s|dl-cdn.alpinelinux.org|$MIRROR|" /etc/apk/repositories
|
|
|
|
fi
|
|
|
|
apk add alpine-sdk git
|
|
|
|
abuild-keygen -an
|
2024-05-24 22:47:24 +08:00
|
|
|
# TODO: use `abuild-keygen --install`
|
|
|
|
cp ~/.abuild/*.pub /etc/apk/keys/
|
2023-11-19 08:48:58 +08:00
|
|
|
|
|
|
|
./packages/alpine/buildapk.sh
|
|
|
|
|
2024-04-27 10:22:53 +08:00
|
|
|
mkdir -p dist
|
|
|
|
cp ~/packages/unsupported/$(uname -m)/redpanda-cpp-git-*.apk dist/
|