summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormicah <micah@riseup.net>2019-09-17 08:10:08 -0700
committermicah <micah@riseup.net>2019-09-17 08:10:08 -0700
commit6697dccd8b2cba225c6cafb0f7015c6e7afab582 (patch)
tree1aee7de6332006e7c3f3a739582cc85557e72be4
parent0401329d742152b0bfd13f4e57d69538addd6550 (diff)
[ci] don't fail if git remote exists
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4670be8..3c9853b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -141,7 +141,7 @@ branded_push:
- git config user.name "Gitlab CI"
- git config user.email "gitlabci@0xacab.org"
# 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 remote -v |grep -q riseup-vpn || git remote add riseup-vpn git@0xacab.org:leap/riseup-vpn_package.git
- git push --force riseup-vpn HEAD:incoming