16 lines
308 B
Bash
Executable File
16 lines
308 B
Bash
Executable File
#!/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
|
|
|
|
./packages/alpine/buildapk.sh
|
|
|
|
mkdir -p dist
|
|
cp ~/packages/unsupported/$(uname -m)/redpanda-cpp-git-*.apk dist/
|