.gitlab-ci.yml 565 B

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