From 5367e0efb191a9f83f6aac4a8053d81f3bf12264 Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Tue, 13 Jul 2021 16:18:37 +0200 Subject: [PATCH] Remove preview build As the Netlify docs preview build wasn't working for a while anyway, we stopped them. In this PR I'm removing the relevant bits. This is the Net equivalent of weaveworks/scope#3879. Signed-off-by: Daniel Holbach --- .gitignore | 3 --- .ruby-version | 1 - Makefile | 11 ----------- 3 files changed, 15 deletions(-) delete mode 100644 .ruby-version diff --git a/.gitignore b/.gitignore index e2d07310..464c787b 100644 --- a/.gitignore +++ b/.gitignore @@ -73,6 +73,3 @@ test/images/network-tester/webserver terraform.tfstate terraform.tfstate.backup prog/net-plugin/rootfs/ - -# Website -site-build diff --git a/.ruby-version b/.ruby-version deleted file mode 100644 index 097a15a2..00000000 --- a/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -2.6.2 diff --git a/Makefile b/Makefile index 9e08a023..c903bf5f 100644 --- a/Makefile +++ b/Makefile @@ -428,14 +428,3 @@ 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