Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
aba5f114
Commit
aba5f114
authored
Mar 18, 2020
by
janis.streib
🦉
Browse files
UPD: better nodejs installation
parent
0d2a0f47
Pipeline
#77471
failed with stages
in 1 minute and 3 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
aba5f114
before_script
:
## dependencies
-
curl -sL https://deb.nodesource.com/setup_11.x | bash -
-
apt-get install -y nodejs python3-requests
-
apt-get update -y
-
test -e /etc/apt/sources.list.d/nodesource.list || curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
-
test -e /etc/apt/sources.list.d/nodesource.list || echo 'deb https://deb.nodesource.com/node_13.x stretch main' > /etc/apt/sources.list.d/nodesource.list
-
'
which
npm
||
(apt-get
update
-y
&&
apt-get
install
-y
nodejs)'
-
apt-get install python3-requests
-
cd frontend/
-
cp netvs.config.js.example netvs.config.js
-
npm install
...
...
@@ -10,7 +13,7 @@ before_script:
## Deployment
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
'
which
ssh-agent
||
(
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
-
mkdir -p ~/.ssh
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment