Skip to content
Snippets Groups Projects
Commit 415399ee authored by Lars Kruse's avatar Lars Kruse Committed by David Trattnig
Browse files

ci: install nodejs from Debian repositories

This source should be more reproducable, than the deb package
repositories from nodesource.com.
In addition we avoid sourcing a shell script from an untrusted location.
parent 426e37ed
No related branches found
No related tags found
1 merge request!1Style & Tests
......@@ -24,10 +24,8 @@ cache:
bundle_and_test:
stage: bundle
before_script:
- apt-get update
- apt-get install -y curl
- curl -sL https://deb.nodesource.com/setup_10.x | bash -
- apt-get install -y nodejs
- apt-get --quiet update
- apt-get --quiet --yes install nodejs
- npm install -g @apidevtools/swagger-cli
script:
......@@ -51,10 +49,8 @@ bundle_and_test:
pages:
stage: deploy
before_script:
- apt-get update
- apt-get install -y curl
- curl -sL https://deb.nodesource.com/setup_10.x | bash -
- apt-get install -y nodejs
- apt-get --quiet update
- apt-get --quiet --yes install nodejs
- npm install swagger-ui-dist@3.22.1
script:
- cp -rp node_modules/swagger-ui-dist/* ./public
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment