Skip to content

Stop building EWCdocs #996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 2 additions & 37 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Set ST2DOCS_BUCKET and EWCDOCS_BUCKET variables in CircleCI Environment
# Set ST2DOCS_BUCKET variable in CircleCI Environment
version: 2
jobs:
st2docs:
Expand Down Expand Up @@ -28,53 +28,22 @@ jobs:
key: v2-dependency-cache-{{ checksum "st2/requirements.txt" }}
paths:
- ~/.cache/pip
ewcdocs:
docker:
- image: circleci/python:3.6
steps:
- checkout
- run:
name: Clone ST2
command: |
make .clone-st2
- restore_cache:
key: v2-dependency-cache-{{ checksum "st2/requirements.txt" }}
- run: sudo apt install python-dev
- run: make ewcdocs
- run:
name: Store HTML docs in workspace dir
command: mkdir /tmp/ewcdocs && cp -r docs/build/html/* /tmp/ewcdocs/
- persist_to_workspace:
root: /tmp
paths:
- ewcdocs
- store_artifacts:
path: /tmp/ewcdocs
destination: ewcdocs
- save_cache:
key: v2-dependency-cache-{{ checksum "st2/requirements.txt" }}
paths:
- ~/.cache/pip
deploy:
docker:
- image: cibuilds/aws:1.16.43
steps:
- attach_workspace:
at: ./generated-site
- run:
name: Deploy to docs.stackstorm.com and ewc-docs.extremenetworks.com
name: Deploy to docs.stackstorm.com
command: |
if [ "${CIRCLE_BRANCH}" = "master" ]; then
aws s3 sync generated-site/st2docs/ \
s3://${ST2DOCS_BUCKET}/latest
aws s3 sync generated-site/ewcdocs/ \
s3://${EWCDOCS_BUCKET}/latest
else
S3_OBJ=$(echo "${CIRCLE_BRANCH}" | sed 's/^v\(.*\)$/\1/')
aws s3 sync generated-site/st2docs/ \
s3://${ST2DOCS_BUCKET}/${S3_OBJ}
aws s3 sync generated-site/ewcdocs/ \
s3://${EWCDOCS_BUCKET}/${S3_OBJ}
fi
- run:
# Check the install scripts to see if this is the current GA version
Expand All @@ -84,8 +53,6 @@ jobs:
if [ "${CIRCLE_BRANCH}" = "v${GA_VER}" ]; then
aws s3 sync generated-site/st2docs/ \
s3://${ST2DOCS_BUCKET}/
aws s3 sync generated-site/ewcdocs/ \
s3://${EWCDOCS_BUCKET}/
else
echo "Not current GA version"
fi
Expand All @@ -95,11 +62,9 @@ workflows:
build-deploy:
jobs:
- st2docs
- ewcdocs
- deploy:
requires:
- st2docs
- ewcdocs
filters:
branches:
only:
Expand Down