mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-11-22 00:47:28 -06:00
Merge branch 'add_nightly_builds' into 'main'
Changed IS_NIGHTLY var checks to string from bool See merge request veilid/veilid!291
This commit is contained in:
commit
a4ade6774b
@ -19,10 +19,10 @@ cp -f /veilid/target/$CARGO_ARCH/release/veilid-cli /dpkg/veilid-cli/usr/bin
|
||||
# pack it up
|
||||
dpkg-deb -b /dpkg/veilid-cli/
|
||||
# Appropriatly name the package for STABLE or NIGHTLY release
|
||||
if [ "$3" = true ]
|
||||
if [ "$3" = "true" ]
|
||||
then
|
||||
mv /dpkg/veilid-cli.deb /dpkg/out/veilid-cli-$BUILD_DATE\_$ARCH.deb
|
||||
elif [ "$3" = false ]
|
||||
elif [ "$3" = "false" ]
|
||||
then
|
||||
mv /dpkg/veilid-cli.deb /dpkg/out/veilid-cli-$CARGO_VERSION\_$ARCH.deb
|
||||
else
|
||||
|
@ -25,10 +25,10 @@ cp -f /veilid/target/$CARGO_ARCH/release/veilid-server /dpkg/veilid-server/usr/b
|
||||
# pack it up
|
||||
dpkg-deb -b /dpkg/veilid-server/
|
||||
# Appropriatly name the package for STABLE or NIGHTLY release
|
||||
if [ "$3" = true ]
|
||||
if [ "$3" = "true" ]
|
||||
then
|
||||
mv /dpkg/veilid-server.deb /dpkg/out/veilid-server-$BUILD_DATE\_$ARCH.deb
|
||||
elif [ "$3" = false ]
|
||||
elif [ "$3" = "false" ]
|
||||
then
|
||||
mv /dpkg/veilid-server.deb /dpkg/out/veilid-server-$CARGO_VERSION\_$ARCH.deb
|
||||
else
|
||||
|
@ -7,10 +7,10 @@ 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 ]
|
||||
if [ "$3" = "true" ]
|
||||
then
|
||||
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-cli.spec RELEASE_VERSION $BUILD_DATE
|
||||
elif [ "$3" = false ]
|
||||
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"
|
||||
|
@ -8,10 +8,10 @@ CARGO_VERSION="$(/veilid/package/cargo_version.sh /veilid/veilid-server/Cargo.to
|
||||
# veilid-server spec file
|
||||
cp -rf /veilid/package/rpm/veilid-server/veilid-server.spec /root/rpmbuild/SPECS/
|
||||
# Select CARGO_VERSION for STABLE releases or BUILD_DATE for NIGHTLY releases
|
||||
if [ "$3" = true ]
|
||||
if [ "$3" = "true" ]
|
||||
then
|
||||
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-server.spec RELEASE_VERSION $BUILD_DATE
|
||||
elif [ "$3" = false ]
|
||||
elif [ "$3" = "false" ]
|
||||
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-server.spec RELEASE_VERSION $CARGO_VERSION
|
||||
else
|
||||
echo $3 "is not a valid state to determine if the build is STABLE or NIGHTLY"
|
||||
|
Loading…
Reference in New Issue
Block a user