提交 260f37ec 编写于 作者: W Wang,Jeff

Update the deploy_doc script.

上级 c03d0024
......@@ -10,16 +10,17 @@ elif [[ "$TRAVIS_BRANCH" == "develop" || "$TRAVIS_BRANCH" =~ ^v|release/[[:dig
PPO_SCRIPT_BRANCH=master
else
# Early exit, this branch doesn't require documentation build
return 0;
exit $exit_code;
fi
export DEPLOY_DOCS_SH=https://raw.githubusercontent.com/PaddlePaddle/PaddlePaddle.org/$PPO_SCRIPT_BRANCH/scripts/deploy/deploy_docs.sh
docker run -i --rm \
docker run -it \
-e CONTENT_DEC_PASSWD=$CONTENT_DEC_PASSWD \
-e TRAVIS_BRANCH=$TRAVIS_BRANCH \
-e DEPLOY_DOCS_SH=$DEPLOY_DOCS_SH \
-e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST \
-v "$PWD:/models" paddlepaddle/paddle:latest /bin/bash -c
'cd /modelsi;curl $DEPLOY_DOCS_SH | bash -s $CONTENT_DEC_PASSWD $TRAVIS_BRANCH /models models/build/doc/ ${PPO_SCRIPT_BRANCH}' || exit_code=$(( exit_code | $? ))
-v "$PWD:/models" \
-w /paddle \
paddlepaddle/paddle:latest-dev \
/bin/bash -c 'cd /models; curl $DEPLOY_DOCS_SH | bash -s $CONTENT_DEC_PASSWD $TRAVIS_BRANCH /models models/build/doc/ ${PPO_SCRIPT_BRANCH}' || exit_code=$(( exit_code | $? ))
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册