Loading .gitlab-ci.yml +10 −2 Original line number Diff line number Diff line Loading @@ -19,17 +19,25 @@ sync-tbc: EXCLUDE: samples,custom before_script: - | 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" ]] then return fi if echo "$certs" >> /etc/ssl/certs/ca-certificates.crt if as_content "$certs" >> /etc/ssl/certs/ca-certificates.crt then export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt echo -e "CA certificates imported in \\e[33;1m/etc/ssl/certs/ca-certificates.crt\\e[0m" elif echo "$certs" >> /etc/ssl/cert.pem elif as_content "$certs" >> /etc/ssl/cert.pem then export REQUESTS_CA_BUNDLE=/etc/ssl/cert.pem echo -e "CA certificates imported in \\e[33;1m/etc/ssl/cert.pem\\e[0m" Loading Loading
.gitlab-ci.yml +10 −2 Original line number Diff line number Diff line Loading @@ -19,17 +19,25 @@ sync-tbc: EXCLUDE: samples,custom before_script: - | 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" ]] then return fi if echo "$certs" >> /etc/ssl/certs/ca-certificates.crt if as_content "$certs" >> /etc/ssl/certs/ca-certificates.crt then export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt echo -e "CA certificates imported in \\e[33;1m/etc/ssl/certs/ca-certificates.crt\\e[0m" elif echo "$certs" >> /etc/ssl/cert.pem elif as_content "$certs" >> /etc/ssl/cert.pem then export REQUESTS_CA_BUNDLE=/etc/ssl/cert.pem echo -e "CA certificates imported in \\e[33;1m/etc/ssl/cert.pem\\e[0m" Loading