Skip to content

Commit

Permalink
Add step to run.sh which deletes /memgraph from builder before copy
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkoBarisic committed Oct 31, 2023
1 parent 68e79bd commit b2de962
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions release/package/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ make_package () {
if [[ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]]; then
git fetch origin master:master
fi

# Ensure we have a clean build directory
docker exec "$build_container" rm -rf /memgraph

docker exec "$build_container" mkdir -p /memgraph
# TODO(gitbuda): Revisit copying the whole repo -> makese sense under CI.
docker cp "$PROJECT_ROOT/." "$build_container:/memgraph/"

# Git clean
docker exec "$build_container" bash -c "cd memgraph && git clean -ffdx"

container_build_dir="/memgraph/build"
container_output_dir="$container_build_dir/output"
Expand Down

0 comments on commit b2de962

Please sign in to comment.