瀏覽代碼

Add new file

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

+ 13 - 0
.gitlab-ci.yml

@@ -0,0 +1,13 @@
+build_branch:
+    image: docker.infra.flowdat.com/fd3/sf-php:latest
+    variables:
+      GIT_STRATEGY: clone
+    script:
+      - 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 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:
+      - pushes
+      - branches