Loading templates/gitlab-ci-docker.yml +25 −0 Original line number Diff line number Diff line Loading @@ -352,6 +352,30 @@ stages: fi } function maybe_install_awk() { if ! command -v awk > /dev/null then if command -v apt-get > /dev/null then # Debian apt-get update apt-get install --no-install-recommends --yes --quiet awk elif command -v apk > /dev/null then # Alpine apk add --no-cache gawk elif command -v dnf > /dev/null then # Fedora dnf install -y -q awk else log_error "... didn't find any supported package manager to install awk" exit 1 fi fi } function unscope_variables() { _scoped_vars=$(env | awk -F '=' "/^scoped__[a-zA-Z0-9_]+=/ {print \$1}" | sort) if [[ -z "$_scoped_vars" ]]; then return; fi Loading Loading @@ -684,6 +708,7 @@ stages: } function init_workspace() { maybe_install_awk install_custom_ca_certs unscope_variables eval_all_secrets Loading Loading
templates/gitlab-ci-docker.yml +25 −0 Original line number Diff line number Diff line Loading @@ -352,6 +352,30 @@ stages: fi } function maybe_install_awk() { if ! command -v awk > /dev/null then if command -v apt-get > /dev/null then # Debian apt-get update apt-get install --no-install-recommends --yes --quiet awk elif command -v apk > /dev/null then # Alpine apk add --no-cache gawk elif command -v dnf > /dev/null then # Fedora dnf install -y -q awk else log_error "... didn't find any supported package manager to install awk" exit 1 fi fi } function unscope_variables() { _scoped_vars=$(env | awk -F '=' "/^scoped__[a-zA-Z0-9_]+=/ {print \$1}" | sort) if [[ -z "$_scoped_vars" ]]; then return; fi Loading Loading @@ -684,6 +708,7 @@ stages: } function init_workspace() { maybe_install_awk install_custom_ca_certs unscope_variables eval_all_secrets Loading