From 4d8eff1e0b55c804e6ae7c493dcb50a115188591 Mon Sep 17 00:00:00 2001 From: Lars Kruse <devel@sumpfralle.de> Date: Sat, 19 Mar 2022 23:48:55 +0100 Subject: [PATCH] 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. --- .gitlab-ci.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bc451b5..8c774c4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,10 +15,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: @@ -42,10 +40,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 -- GitLab