Skip to content

Commit

Permalink
Add local test script
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi committed Sep 9, 2022
1 parent b024872 commit ce8220e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e

if [ -z "$1" -o -z "$2" ]; then
echo "Usage: $0 <path to a src folder> <path to a dest folder>"
exit 1
fi

docker build -t mdocs-local .
docker run --rm -e WORKSPACE=/github/workspace -v "$(pwd):/github/workspace" mdocs-local "${1%/}" "${2%/}"

0 comments on commit ce8220e

Please sign in to comment.