.gitlab-ci.yml 635 B

12345678910111213
  1. build_branch:
  2. image: docker.infra.flowdat.com/fd3/sf-php:latest
  3. variables:
  4. GIT_STRATEGY: clone
  5. script:
  6. - ssh-keyscan -p 222 -t rsa gogs.infra.flowdat.com >> ~/.ssh/known_hosts
  7. - git fetch --tags
  8. - 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/FiberhomeBundle.git ; fi
  9. - git checkout $CI_COMMIT_REF_NAME
  10. - chmod 0600 keys/* && eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa && git push -u gogs $CI_COMMIT_REF_NAME --tags
  11. only:
  12. - pushes
  13. - branches