From 7f8b5616181083a927af6dd26fcf8431b68aad40 Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov Date: Wed, 21 Apr 2021 17:06:34 +0300 Subject: [PATCH] .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c8382c5..271d327 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,7 +55,7 @@ sync: GIT_STRATEGY: "none" only: variables: - - ($GIT_PUSH_URL =~ /^\S+$/ && $GIT_PUSH_BRANCH =~ /^\S+$/) && (($GIT_PUSH_LOGIN =~ /^\S+$/ && $GIT_PUSH_PASSWORD =~ /^\S+$/) || $SSH_PULL_PRIVATE_KEY=~ /^\S+$/) && $GIT_PULL_URL =~ /^\S+$/ && $GIT_PULL_BRANCH =~ /^\S+$/ + - $GIT_PUSH_URL =~ /^\S+$/ && $GIT_PUSH_BRANCH =~ /^\S+$/ && (($GIT_PUSH_LOGIN =~ /^\S+$/ && $GIT_PUSH_PASSWORD =~ /^\S+$/) || $SSH_PULL_PRIVATE_KEY=~ /^\S+$/) && $GIT_PULL_URL =~ /^\S+$/ && $GIT_PULL_BRANCH =~ /^\S+$/ before_script: - git config --global credential.helper store && touch ~/.git-credentials - ( test -n "${GIT_PULL_LOGIN}" && test -n "${GIT_PULL_PASSWORD}" ) && echo "https://${GIT_PULL_LOGIN}:${GIT_PULL_PASSWORD}@$(echo ${GIT_PULL_URL} | sed -r 's#([^/])/[^/].*#\1#' | sed -e 's|https://||g')" >> ~/.git-credentials || true -- GitLab