X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-www%2Fdeploy.sh;h=7f0308fc1b3318025378afb0a649c00a2a500815;hb=2bd4c4ca63118876e21337a6b3d550bf39535d5a;hp=9224b4ee121e9ac8b70c41b51ee6dc74105c7782;hpb=4c61f7a476ff94b2302439fdc463b6113a7fa14e;p=lttng-ci.git diff --git a/scripts/lttng-www/deploy.sh b/scripts/lttng-www/deploy.sh index 9224b4e..7f0308f 100755 --- a/scripts/lttng-www/deploy.sh +++ b/scripts/lttng-www/deploy.sh @@ -18,6 +18,8 @@ set -exu +RUBY_VERSION=2.7 + # Add ssh key for deployment cp "$HOST_PUBLIC_KEYS" ~/.ssh/known_hosts cp "$KEY_FILE_VARIABLE" ~/.ssh/id_rsa @@ -26,15 +28,25 @@ cp "$KEY_FILE_VARIABLE" ~/.ssh/id_rsa # Nodejs # Using Debian, as root -curl -fsSL https://deb.nodesource.com/setup_15.x | bash - +curl -fsSL https://deb.nodesource.com/setup_16.x | bash - apt-get install -y nodejs -apt-get install -y ruby asciidoc xmlto +apt-add-repository ppa:brightbox/ruby-ng +apt-get install -y ruby${RUBY_VERSION} ruby${RUBY_VERSION}-dev ruby-switch + +ruby-switch --list +ruby-switch --set ruby${RUBY_VERSION} + +ruby -v + +apt-get install -y asciidoc xmlto python3 python3-pip npm install -g grunt-cli npm install -g sass -./bootstrap-ubuntu.sh +export PATH="/root/.gem/ruby/${RUBY_VERSION}.0/bin:$PATH" + +./bootstrap.sh grunt build:prod grunt deploy:prod