mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-12-06 11:14:26 +00:00
12 lines
519 B
Bash
12 lines
519 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
mkdir -p /tmp/corescope
|
|
tar -C /src/corescope --exclude=node_modules --exclude=dist --exclude=.git -cf - . | tar -C /tmp/corescope -xf -
|
|
cd /tmp/corescope
|
|
# SQLite requires the repository's native cgo build flags.
|
|
make build-server build-ingestor GIT_VERSION=ukmesh-dev GIT_COMMIT="${COMPANION_CORESCOPE_COMMIT:-unknown}"
|
|
for executable in corescope-server corescope-ingestor; do
|
|
cp "dist/$executable" "/out/$executable.next"
|
|
mv "/out/$executable.next" "/out/$executable"
|
|
done
|