Add website preview

This commit is contained in:
Ilya Dmitrichenko committed 2017-04-27 12:14:50 +01:00
1 parent f517a09f0f
commit 9459d4b739
3 files changed
+15

No files matched your search

+3
View File
@@ -71,3 +71,6 @@ test/coverage.*
terraform.tfstate
terraform.tfstate.backup
prog/net-plugin/rootfs/
# Website
site-build
+1
View File
@@ -0,0 +1 @@
2.3.0
+11
View File
@@ -407,3 +407,14 @@ integration-tests: all testrunner
# integration-tests
#
RUNNER_ARGS="-parallel" ./test/run-integration-tests.sh
# This target is only intended for use in Netlify CI environment for generating preview pages on feature branches and pull requests.
# We need to obtain website repository (checked out under `site-build`) and place `site` directory into the context (`site-build/_weave_net_docs`).
# We then run make in `site-build` and Netlify will publish the output (`site-build/_site`).
netlify-site-preview:
@mkdir -p site-build
@curl --user $(WEBSITE_GITHUB_USER) --silent 'https://codeload.github.com/weaveworks/website-next/tar.gz/$(WEBSITE_BRANCH)' \
| tar --extract --gunzip --directory site-build --strip 1
@cp -r site site-build/_weave_net_docs
@$(MAKE) -C site-build netlify_ensure_install
@$(MAKE) -C site-build BUILD_ENV=netlify