From a0212011c3890aeddaaa29ff74f595c8a00b313c Mon Sep 17 00:00:00 2001 From: James Stocks Date: Thu, 21 May 2020 09:52:10 +0100 Subject: [PATCH] Add website push to release process guide Signed-off-by: James Stocks --- RELEASE_PROCESS.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md index 982f4bbac..40b2337b7 100644 --- a/RELEASE_PROCESS.md +++ b/RELEASE_PROCESS.md @@ -165,3 +165,15 @@ Among other things, this promotion automatically generates [release notes](https The release of InSpec will automatically create a PR to bump InSpec in https://github.com/chef/homebrew-chef This should be merged - at some point this could be changed to directly committing to the repo. +## Updating inspec.io + +If the release included changes to docs pages, then publish the current docs to inspec.io. + +1. In your bash profile, have values exported for FASTLY_SERVICE_ID and FASTLY_API_KEY (ask Chef Helpdesk if you don't have these). +2. Make sure nodejs is installed (e.g. `brew install nodejs`) +2. Checkout `master` and `git pull` to ensure you have the latest code. Also ensure you have the `gh-pages` branch fetched. +3. `cd www` +4. `bundle install` to install the www directory's gem bundle. Depending on your Ruby setup you may need to use the `--gemfile=Gemfile` option to stop bundler from installing the root gem set. +5. Run `bundle exec rake www PUSH=1` to do a complete build, push, publish and cache clear of the website. +6. Check http://www.inspec.io for expected changes. Fastly will clear cache after about 30 seconds. +