diff --git a/.circleci/config.yml b/.circleci/config.yml index 025fc48e..9c51bc48 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index cbb4077c..9ca5ab64 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -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