circleci: removed complexity from docs deployment job (#3396)

This commit is contained in:
mircea-c
2019-03-09 10:13:36 -05:00
committed by Anton Kaliaev
parent b6a510a3e7
commit 90794260bc
2 changed files with 19 additions and 2 deletions

View File

@ -10,7 +10,7 @@ defaults: &defaults
docs_update_config: &docs_update_config
working_directory: ~/repo
docker:
- image: tendermint/docs_deployment
- image: tendermintdev/jq_curl
environment:
AWS_REGION: us-east-1
@ -239,7 +239,22 @@ jobs:
- run:
name: Trigger website build
command: |
chamber exec tendermint -- start_website_build
curl --silent \
--show-error \
-X POST \
--header "Content-Type: application/json" \
-d "{\"branch\": \"$CIRCLE_BRANCH\"}" \
"https://circleci.com/api/v1.1/project/github/$CIRCLE_PROJECT_USERNAME/$WEBSITE_REPO_NAME/build?circle-token=$TENDERBOT_API_TOKEN" > response.json
RESULT=`jq -r '.status' response.json`
MESSAGE=`jq -r '.message' response.json`
if [[ ${RESULT} == "null" ]] || [[ ${RESULT} -ne "200" ]]; then
echo "CircleCI API call failed: $MESSAGE"
exit 1
else
echo "Website build started"
fi
workflows:
version: 2

View File

@ -40,6 +40,8 @@ Special thanks to external contributors on this release:
- leveldb.alivesnaps
- leveldb.aliveiters
CI/CD: * [\#3396](https://github.com/tendermint/tendermint/pull/3396)
### BUG FIXES:
- [p2p/conn] \#3347 Reject all-zero shared secrets in the Diffie-Hellman step of secret-connection