trifid/.builds/void.yml

29 lines
698 B
YAML
Raw Normal View History

image: archlinux
packages:
2023-06-27 12:51:58 +00:00
- xbps-static-bin
2023-06-27 12:48:08 +00:00
- openssl
2023-06-27 12:51:58 +00:00
- go
sources:
- https://git.e3t.cc/~core/trifid
tasks:
- archive: |
describe=$(git describe)
if [[ $describe == tfclient* ]]; then
project=tfclient
fi
if [[ $describe == tfcli* ]]; then
project=tfcli
fi
if [[ $describe == trifid-api* ]]; then
project=trifid-api
fi
pkgver=$(git describe | sed -e 's/$project-v//g' | sed -e 's/-/_/g')
echo "project=$project" >> ~/.buildenv
echo "pkgver=$pkgver" >> ~/.buildenv
git archive -o /home/build/trifid/$project/$project-$pkgver.tar.gz --prefix=$project-$pkgver/ HEAD
echo "$project-$pkgver"