瀏覽代碼

Update .gitlab-ci.yml

Guillermo Espinoza 5 年之前
父節點
當前提交
7c6165df90
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .gitlab-ci.yml

+ 1 - 1
.gitlab-ci.yml

@@ -6,7 +6,7 @@ build_branch:
       - ssh-keyscan -p 222 -t rsa gogs.infra.flowdat.com >> ~/.ssh/known_hosts
       - git fetch --tags
       - 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/3erPartyFlowdat3/SonataAdminBundle.git ; fi
-      - git fetch --unshallow gogs
+      - chmod 0600 keys/* && eval $(ssh-agent) && ssh-add keys/gogs.drone.id_rsa && git fetch --unshallow gogs
       - git checkout $CI_COMMIT_REF_NAME
       - chmod 0600 keys/* && eval $(ssh-agent) && ssh-add keys/gogs.drone.id_rsa && git push -u gogs $CI_COMMIT_REF_NAME --tags
     only: