mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
hugo: Checkout correct branch when cloning
This commit is contained in:
parent
3aea8f42d9
commit
115cb1e915
@ -22,7 +22,7 @@ chown -R hugo:hugo /dest
|
|||||||
|
|
||||||
# Wait for updates to watched branch for the given site, and build static content anew.
|
# Wait for updates to watched branch for the given site, and build static content anew.
|
||||||
while true; do
|
while true; do
|
||||||
gosu hugo /usr/bin/git clone --quiet --shared "/src/${GIT_REPO}" /tmp/src
|
gosu hugo git clone --quiet --shared --branch "${GIT_BRANCH}" "/src/${GIT_REPO}" /tmp/src
|
||||||
gosu hugo /bin/hugo --verbose --source /tmp/src --destination /dest && rm -Rf /tmp/src
|
gosu hugo hugo --verbose --source /tmp/src --destination /dest && rm -Rf /tmp/src
|
||||||
inotifywait -qq --event modify "/src/${GIT_REPO}/refs/heads/${GIT_BRANCH}" && break
|
inotifywait -qq --event modify "/src/${GIT_REPO}/refs/heads/${GIT_BRANCH}" && break
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user