This repository has been archived on 2023-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
awl/prepare-pages.sh
Sam Therapy 234e077501
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is failing
fix: correct URL
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-14 20:31:26 +02:00

29 lines
477 B
Bash
Executable file

#!/usr/bin/env bash
set -e
# drone
if [ -n "$DRONE_TAG" ]; then
TAG=$DRONE_TAG
fi
# woodpecker
if [ -n "$CI_COMMIT_TAG" ]; then
TAG=$CI_COMMIT_TAG
fi
if [ -z "$TAG" ]; then
echo "\$TAG not set, exiting"
exit 1
fi
arches=("amd64" "386" "armv6" "arm64")
notag=${TAG//v/}
for arch in "${arches[@]}"; do
wget "https://git.froth.zone/sam/awl/releases/download/$TAG/awl_${notag}_linux_${arch}.deb"
done
reprepro includedeb awl ./*.deb
mkdir -p repo
mv dists/ pool/ repo/