docs: push to envoy-docs/latest (#234)

Signed-off-by: Matt Klein <mklein@lyft.com>
pull/235/head
Matt Klein 7 years ago committed by htuch
parent a64d794478
commit f95796e389
  1. 2
      .circleci/config.yml
  2. 2
      ci/build_setup.sh
  3. 5
      ci/do_ci.sh
  4. 2
      docs/build.sh
  5. 4
      docs/publish.sh

@ -16,6 +16,8 @@ jobs:
steps: steps:
- checkout - checkout
- run: ci/do_ci.sh bazel.docs - run: ci/do_ci.sh bazel.docs
- add_ssh_keys
- run: docs/publish.sh
workflows: workflows:
version: 2 version: 2

@ -4,7 +4,7 @@
set -e set -e
NUM_CPUS=`grep -c ^processor /proc/cpuinfo` [ -z "${NUM_CPUS}" ] && NUM_CPUS=`grep -c ^processor /proc/cpuinfo`
export ENVOY_SRCDIR=/source export ENVOY_SRCDIR=/source

@ -4,6 +4,11 @@
set -e set -e
# xlarge resource_class.
# See note: https://circleci.com/docs/2.0/configuration-reference/#resource_class for why we
# hard code this (basically due to how docker works).
export NUM_CPUS=8
. "$(dirname "$0")"/build_setup.sh . "$(dirname "$0")"/build_setup.sh
echo "building using ${NUM_CPUS} CPUs" echo "building using ${NUM_CPUS} CPUs"

@ -21,7 +21,7 @@ fi
source "${BUILD_DIR}"/venv/bin/activate source "${BUILD_DIR}"/venv/bin/activate
bazel --batch build -s ${BAZEL_BUILD_OPTIONS} //api --aspects \ bazel --batch build ${BAZEL_BUILD_OPTIONS} //api --aspects \
tools/protodoc/protodoc.bzl%proto_doc_aspect --output_groups=rst tools/protodoc/protodoc.bzl%proto_doc_aspect --output_groups=rst
# These are the protos we want to put in docs, this list will grow. # These are the protos we want to put in docs, this list will grow.

@ -4,7 +4,7 @@ set -e
DOCS_DIR=generated/docs DOCS_DIR=generated/docs
CHECKOUT_DIR=../envoy-docs CHECKOUT_DIR=../envoy-docs
PUBLISH_DIR="$CHECKOUT_DIR"/envoy PUBLISH_DIR="$CHECKOUT_DIR"/envoy-docs/latest
BUILD_SHA=`git rev-parse HEAD` BUILD_SHA=`git rev-parse HEAD`
if [ -z "$CIRCLE_PULL_REQUEST" ] && [ "$CIRCLE_BRANCH" == "master" ] if [ -z "$CIRCLE_PULL_REQUEST" ] && [ "$CIRCLE_BRANCH" == "master" ]
@ -24,7 +24,7 @@ then
echo 'add' echo 'add'
git add . git add .
echo 'commit' echo 'commit'
git commit -m "docs @$BUILD_SHA" git commit -m "docs data-plane-api@$BUILD_SHA"
echo 'push' echo 'push'
git push origin master git push origin master
else else

Loading…
Cancel
Save