From 0401329d742152b0bfd13f4e57d69538addd6550 Mon Sep 17 00:00:00 2001 From: micah Date: Tue, 17 Sep 2019 07:43:46 -0700 Subject: [ci] Only add the remote if it is not already there --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2608617..4670be8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -140,8 +140,8 @@ branded_push: # we also need to configure name and email for git user - git config user.name "Gitlab CI" - git config user.email "gitlabci@0xacab.org" - # Add the remote repository and push to it - - git remote add riseup-vpn git@0xacab.org:leap/riseup-vpn_package.git + # Add the remote repository and push to it - sometimes it already exists, and it causes the pipeline to fail, so we only add if its not already there + - git remote -v |grep -q riseup-vpn; if [ $? -ne 0 ]; then git remote add riseup-vpn git@0xacab.org:leap/riseup-vpn_package.git; fi - git push --force riseup-vpn HEAD:incoming -- cgit v1.2.3