mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-02-05 17:35:29 -05:00
fc7debba3f
- Restructured linux repo directory structure to include Stable and Nightly releases - Reworked Earthfile to pass IS_NIGHTLY boolean to package build scripts for use in file names - Added nightly pipeline to CICD config yaml. Pipeline is triggered by IS_NIGHTLY variable - Two distribution scripts now exist, one for Stable and one for Nightly - Reworked RPM build spec files to create appropriate file names - Reworked debian release generation scripts - RPM repo directory structure is prepped for arm64 builds - Switched from scp to rsync for moving the completed repo from ochestration to repo server - Created schedule in Gitlab UI to trigger nightly release at 2300 Central Time
23 lines
979 B
Bash
Executable File
23 lines
979 B
Bash
Executable File
#!/bin/bash
|
|
ARCH=$1
|
|
CARGO_ARCH=$2
|
|
IS_NIGHTLY=$3
|
|
BUILD_DATE=$(date '+%Y%m%d')
|
|
CARGO_VERSION="$(/veilid/package/cargo_version.sh /veilid/veilid-cli/Cargo.toml)"
|
|
|
|
# veilid-cli spec file
|
|
cp -rf /veilid/package/rpm/veilid-cli/veilid-cli.spec /root/rpmbuild/SPECS/
|
|
if [ "$3" = true ]
|
|
then
|
|
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-cli.spec RELEASE_VERSION $BUILD_DATE
|
|
elif [ "$3" = false ]
|
|
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-cli.spec RELEASE_VERSION $CARGO_VERSION
|
|
else
|
|
echo $3 "is not a valid state to determine if the build is STABLE or NIGHTLY"
|
|
fi
|
|
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-cli.spec CARGO_VERSION $CARGO_VERSION
|
|
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-cli.spec ARCH $ARCH
|
|
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-cli.spec CARGO_ARCH $CARGO_ARCH
|
|
|
|
# build the rpm
|
|
rpmbuild --target "x86_64" -bb /root/rpmbuild/SPECS/veilid-cli.spec |