This commit is contained in:
yangyu 2018-07-21 09:15:45 +08:00
parent b11c643514
commit 91b09d16ad
2 changed files with 9 additions and 3 deletions

View File

@ -16,7 +16,9 @@ RUN cd $BASH_PATH && \
git checkout $NVM_VERSION && \
source $BASH_PATH/.nvm/nvm.sh && \
nvm install $NODE_VERSION && \
npm install -g hexo-cli
npm install -g hexo-cli && \
npm npm install hexo-renderer-jade@0.3.0 --save && \
npm install hexo-renderer-stylus --save
RUN mkdir /logs

View File

@ -1,10 +1,14 @@
#!/bin/bash
if [ ! -e /hexo ]; then
if [ -n "$REPOSITORY" ]; then
cd /;
git clone -b $BRANCH $REPOSITORY hexo;
fi
fi
if [ -e /hexo ]; then
rm -rf /hexo;
cd /;
git clone -b $BRANCH $REPOSITORY hexo;
fi