Skip to content

Commit

Permalink
CI: stay in same dir in copy_in_saver_test_data function (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Dec 2, 2023
1 parent 7196220 commit 6bc82d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sh/copy_in_saver_test_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ copy_in_saver_test_data()
local -r SAVER_CID=$(docker ps --filter status=running --format '{{.Names}}' | grep "saver")
local -r DEST_PATH=/cyber-dojo
# You cannot docker cp to a tmpfs, so tar-piping instead...
cd ${SRC_PATH} \
&& tar -c . \
| docker exec -i ${SAVER_CID} tar x -C ${DEST_PATH}
pushd "${SRC_PATH}" || exit 99
tar -c . \
| docker exec -i "${SAVER_CID}" tar x -C ${DEST_PATH}
popd || exit 99
}

0 comments on commit 6bc82d7

Please sign in to comment.