Espinoza Guillermo пре 6 година
родитељ
комит
125e86863c
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      .gitlab-ci.yml

+ 1 - 2
.gitlab-ci.yml

@@ -4,8 +4,7 @@ build_branch:
       - chmod 0600 keys/*
       - eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa
       - git fetch --tags
-      - git ls-remote --exit-code gogs
-      - if test $? = 0; then echo 'Existe el remote gogs' ; else git remote add gogs ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/FTTH.git ; fi
+      - if git ls-remote --exit-code gogs &>/dev/null; then echo 'Existe el remote gogs' ; else git remote add gogs ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/FTTH.git ; fi
       - git checkout $CI_COMMIT_REF_NAME
       - git push -u gogs $CI_COMMIT_REF_NAME --tags
     only: