projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ansible: add tests dependencies for binutils-gdb
[lttng-ci.git]
/
scripts
/
lttng-www
/
deploy.sh
diff --git
a/scripts/lttng-www/deploy.sh
b/scripts/lttng-www/deploy.sh
index 55f295878835e6a6b8d1a65310356d22b87ff0e2..7f0308fc1b3318025378afb0a649c00a2a500815 100755
(executable)
--- a/
scripts/lttng-www/deploy.sh
+++ b/
scripts/lttng-www/deploy.sh
@@
-18,23
+18,35
@@
set -exu
set -exu
+RUBY_VERSION=2.7
+
# Add ssh key for deployment
# Add ssh key for deployment
-echo "StrictHostKeyChecking no" >> ~/.ssh/config
+cp "$HOST_PUBLIC_KEYS" ~/.ssh/known_hosts
cp "$KEY_FILE_VARIABLE" ~/.ssh/id_rsa
# lttng-www dependencies
# Nodejs
# Using Debian, as root
cp "$KEY_FILE_VARIABLE" ~/.ssh/id_rsa
# lttng-www dependencies
# Nodejs
# Using Debian, as root
-curl -fsSL https://deb.nodesource.com/setup_1
5
.x | bash -
+curl -fsSL https://deb.nodesource.com/setup_1
6
.x | bash -
apt-get install -y nodejs
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
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
grunt build:prod
grunt deploy:prod
This page took
0.023693 seconds
and
4
git commands to generate.