Skip to content

Commit

Permalink
Update the deploy_doc script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jetfuel committed Aug 15, 2018
1 parent c03d002 commit 260f37e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions script/deploy_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 | $? ))

0 comments on commit 260f37e

Please sign in to comment.