From 263c7818e69c79b3a39daff6227885c5338cd450 Mon Sep 17 00:00:00 2001 From: Dmitriy Rudko <dmitriy_rudko@epam.com> Date: Mon, 4 Jan 2021 09:37:02 -0600 Subject: [PATCH] GONRG-1402: Fix Community CI to run deployment step only if GIT branch is protected. --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 22439ed..7d23f9b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -61,7 +61,7 @@ unit_tests: - tests/./unit_tests.sh || EXIT_CODE=$? - exit ${EXIT_CODE} -dags_rsync: +osdu-gcp-deploy: stage: deploy script: - gcloud auth activate-service-account --key-file $OSDU_GCP_DEPLOY_FILE @@ -71,4 +71,6 @@ dags_rsync: - gsutil -m rsync -R plugins $OSDU_GCP_DEPL_TARGET/plugins only: variables: - - $CI_COMMIT_REF_PROTECTED + - $OSDU_GCP == 'true' + + -- GitLab