All checks were successful
Test / Create distribution (push) Successful in 43s
Test / Sandbox (push) Successful in 2m18s
Test / Hakurei (push) Successful in 3m10s
Test / Sandbox (race detector) (push) Successful in 3m30s
Test / Hakurei (race detector) (push) Successful in 4m43s
Test / Fpkg (push) Successful in 5m4s
Test / Flake checks (push) Successful in 1m12s
Fortify makes little sense for a container tool. Signed-off-by: Ophestra <cat@gensokyo.uk>
20 lines
701 B
Bash
Executable File
20 lines
701 B
Bash
Executable File
#!/bin/sh -e
|
|
cd "$(dirname -- "$0")/.."
|
|
VERSION="${HAKUREI_VERSION:-untagged}"
|
|
pname="hakurei-${VERSION}"
|
|
out="dist/${pname}"
|
|
|
|
mkdir -p "${out}"
|
|
cp -v "README.md" "dist/hsurc.default" "dist/install.sh" "${out}"
|
|
cp -rv "dist/comp" "${out}"
|
|
|
|
go generate ./...
|
|
go build -trimpath -v -o "${out}/bin/" -ldflags "-s -w -buildid= -extldflags '-static'
|
|
-X git.gensokyo.uk/security/hakurei/internal.version=${VERSION}
|
|
-X git.gensokyo.uk/security/hakurei/internal.hsu=/usr/bin/hsu
|
|
-X main.hmain=/usr/bin/hakurei
|
|
-X main.fpkg=/usr/bin/fpkg" ./...
|
|
|
|
rm -f "./${out}.tar.gz" && tar -C dist -czf "${out}.tar.gz" "${pname}"
|
|
rm -rf "./${out}"
|
|
(cd dist && sha512sum "${pname}.tar.gz" > "${pname}.tar.gz.sha512") |