diff --git a/.circleci/config.yml b/.circleci/config.yml index ed1d54f2d..f90dfc082 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,7 +35,7 @@ set_macos_env: &macos_env docs_update: &docs_deploy working_directory: ~/repo docker: - - image: tendermint/docs_deployment + - image: tendermintdev/jq_curl environment: AWS_REGION: us-east-1 @@ -280,7 +280,22 @@ jobs: - run: name: Trigger website build command: | - chamber exec cosmos-sdk -- 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 macos_ci: <<: *macos_defaults diff --git a/PENDING.md b/PENDING.md index 721ae1d43..007108cf7 100644 --- a/PENDING.md +++ b/PENDING.md @@ -48,6 +48,9 @@ ### Tendermint +### CI/CD +* [\198](https://github.com/cosmos/cosmos-sdk/pull/3832) + ## BUG FIXES