Fix release package script (#131)
This commit is contained in:
parent
e8a41e4457
commit
7b5263d300
@ -47,8 +47,14 @@ make_package () {
|
|||||||
echo "Building Memgraph $offering for $os on $build_container..."
|
echo "Building Memgraph $offering for $os on $build_container..."
|
||||||
|
|
||||||
echo "Copying project files..."
|
echo "Copying project files..."
|
||||||
|
# If master is not the current branch, fetch it, because the get_version
|
||||||
|
# script depends on it. If we are on master, the fetch command is going to
|
||||||
|
# fail so that's why there is the explicit check.
|
||||||
# Required here because Docker build container can't access remote.
|
# Required here because Docker build container can't access remote.
|
||||||
cd "$PROJECT_ROOT" && git fetch origin master:master
|
cd "$PROJECT_ROOT"
|
||||||
|
if [[ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]]; then
|
||||||
|
git fetch origin master:master
|
||||||
|
fi
|
||||||
docker exec "$build_container" mkdir -p /memgraph
|
docker exec "$build_container" mkdir -p /memgraph
|
||||||
docker cp "$PROJECT_ROOT/." "$build_container:/memgraph/"
|
docker cp "$PROJECT_ROOT/." "$build_container:/memgraph/"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user