From 6697dccd8b2cba225c6cafb0f7015c6e7afab582 Mon Sep 17 00:00:00 2001 From: micah Date: Tue, 17 Sep 2019 08:10:08 -0700 Subject: [ci] don't fail if git remote exists --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.gitlab-ci.yml') 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 -- cgit v1.2.3