dendrite dropped polylish mode. create branch when switching tag

This commit is contained in:
leafee98 2023-03-13 22:04:57 -04:00
parent 1f844d0e35
commit 8c0ab63c3f

View file

@ -68,7 +68,9 @@ function switch_tag()
fi fi
echo "switching to tag: $TARGET_TAG" echo "switching to tag: $TARGET_TAG"
git -C "$REPO_DIR" switch --detach "$TARGET_TAG" git -C "$REPO_DIR" switch --force-create build "$TARGET_TAG"
echo "cleaning workspace..."
git -C "$REPO_DIR" clean --force -xd
} }
function build() function build()
@ -88,10 +90,9 @@ function package()
rm -rf "$ROOTFS"/* rm -rf "$ROOTFS"/*
install -D -t $ROOTFS/usr/local/lib/dendrite $BUILD_DIR/* install -D -t $ROOTFS/usr/local/lib/dendrite $BUILD_DIR/*
install -D -t $ROOTFS/etc/dendrite $REPO_DIR/dendrite-sample.polylith.yaml install -D -t $ROOTFS/etc/dendrite $REPO_DIR/dendrite-sample.yaml
install -D -t $ROOTFS/etc/dendrite $REPO_DIR/dendrite-sample.monolith.yaml
export VERSION=$($BUILD_DIR/dendrite-monolith-server --version) export VERSION=$($BUILD_DIR/dendrite --version)
if [ -n "${BUILD_REL}" ] if [ -n "${BUILD_REL}" ]
then then
VERSION=$VERSION-brel$BUILD_REL VERSION=$VERSION-brel$BUILD_REL