summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authormicah <micah@riseup.net>2019-09-17 07:43:46 -0700
committermicah <micah@riseup.net>2019-09-17 07:43:46 -0700
commit0401329d742152b0bfd13f4e57d69538addd6550 (patch)
treede5b8cd3d7cc8b15709b463fb02ed614357f26de /.gitlab-ci.yml
parentea2524d4b5547f24657d4e4d7534b68df0709ff6 (diff)
[ci] Only add the remote if it is not already there
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml4
1 files changed, 2 insertions, 2 deletions
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