diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2608617f7b0063537570b01b93ce57043bf71bd6..4670be8fdfafebc87fa7a9d97d1e410ffd1b29c6 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