Skip to content

Commit

Permalink
Making this build compatible with a weekly update (cncf#1696)
Browse files Browse the repository at this point in the history
* test with a weekly update

* use a landscapeapp based build

* oops

* one more fix

* build

* ensure that we can build it for a latest update

* final check
  • Loading branch information
AndreyKozlov1984 authored May 31, 2020
1 parent 0aaf2f3 commit 935528a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion netlify.sh

This file was deleted.

8 changes: 8 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build]
base = "netlify"
publish = "dist"
ignore = "false"
command = "bash netlify.sh"
environment = { RUBY_VERSION = "2.6.2" }


11 changes: 11 additions & 0 deletions netlify/netlify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
. ~/.nvm/nvm.sh
npm pack interactive-landscape@latest
tar xzf interactive*
cd package
cp -r ../node_modules .
nvm install `cat .nvmrc`
nvm use `cat .nvmrc`
npm install -g npm
npm install
cp -r node_modules/* ../node_modules
PROJECT_PATH=../.. npm run build

0 comments on commit 935528a

Please sign in to comment.