Loading templates/gitlab-ci-lighthouse.yml +12 −3 Original line number Diff line number Diff line Loading @@ -144,6 +144,15 @@ stages: fi } function as_content() { file_or_content=$1 if [[ -f "${file_or_content}" ]]; then cat "${file_or_content}" else echo "${file_or_content}" fi } function install_ca_certs() { certs=$1 if [[ -z "$certs" ]] Loading @@ -152,17 +161,17 @@ stages: fi # import in system if echo "$certs" >> /etc/ssl/certs/ca-certificates.crt if as_content "$certs" >> /etc/ssl/certs/ca-certificates.crt then log_info "CA certificates imported in \\e[33;1m/etc/ssl/certs/ca-certificates.crt\\e[0m" fi if echo "$certs" >> /etc/ssl/cert.pem if as_content "$certs" >> /etc/ssl/cert.pem then log_info "CA certificates imported in \\e[33;1m/etc/ssl/cert.pem\\e[0m" fi # configure for npm echo "$certs" > /tmp/custom-ca.pem as_content "$certs" > /tmp/custom-ca.pem export NODE_EXTRA_CA_CERTS=/tmp/custom-ca.pem } Loading Loading
templates/gitlab-ci-lighthouse.yml +12 −3 Original line number Diff line number Diff line Loading @@ -144,6 +144,15 @@ stages: fi } function as_content() { file_or_content=$1 if [[ -f "${file_or_content}" ]]; then cat "${file_or_content}" else echo "${file_or_content}" fi } function install_ca_certs() { certs=$1 if [[ -z "$certs" ]] Loading @@ -152,17 +161,17 @@ stages: fi # import in system if echo "$certs" >> /etc/ssl/certs/ca-certificates.crt if as_content "$certs" >> /etc/ssl/certs/ca-certificates.crt then log_info "CA certificates imported in \\e[33;1m/etc/ssl/certs/ca-certificates.crt\\e[0m" fi if echo "$certs" >> /etc/ssl/cert.pem if as_content "$certs" >> /etc/ssl/cert.pem then log_info "CA certificates imported in \\e[33;1m/etc/ssl/cert.pem\\e[0m" fi # configure for npm echo "$certs" > /tmp/custom-ca.pem as_content "$certs" > /tmp/custom-ca.pem export NODE_EXTRA_CA_CERTS=/tmp/custom-ca.pem } Loading