dendrite dropped polylish mode. create branch when switching tag
This commit is contained in:
parent
1f844d0e35
commit
8c0ab63c3f
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue