Explorar o código

Update .gitlab-ci.yml

Guillermo Espinoza %!s(int64=5) %!d(string=hai) anos
pai
achega
7c6165df90
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: