From 6142f9061259eb975f4c9687b4e2b6a9fe1fb5d8 Mon Sep 17 00:00:00 2001 From: mircea-c Date: Fri, 8 Mar 2019 12:03:01 -0500 Subject: [PATCH] Merge PR #3832: changed docs build docker image and job commands --- .circleci/config.yml | 19 +++++++++++++++++-- PENDING.md | 3 +++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ed1d54f2df..f90dfc0828 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 721ae1d436..007108cf75 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