-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add script to pull wodin site #196
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ see 155 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! See comment but you'll know better the context about whether that is appropriate or not
docker/pull-site-and-start.sh
Outdated
set -ex | ||
HERE=$(dirname "$0") | ||
|
||
git clone --branch $1 $2 $3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use --single-branch
here maybe too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ive decided to use --depth 1
instead, apparently this is better for bandwidth, see:
https://stackoverflow.com/questions/1778088/how-do-i-clone-a-single-branch-in-git?noredirect=1&lq=1
this was actually noticeably quicker on my machine, would definitely recommend --depth 1
if you just need to look at one branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, think you can give shift an argument rather than needing to call it three times: https://www.computerhope.com/unix/bash/shift.htm
This is just a script I am adding for the wodin deploy tool to let it pull the wodin config from github before starting wodin in a container