|
@@ -1,12 +1,13 @@
|
|
build_branch:
|
|
build_branch:
|
|
image: docker.infra.flowdat.com/fd3/sf-php:latest
|
|
image: docker.infra.flowdat.com/fd3/sf-php:latest
|
|
|
|
+ variables:
|
|
|
|
+ GIT_STRATEGY: clone
|
|
script:
|
|
script:
|
|
- - chmod 0600 keys/*
|
|
|
|
- - eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa
|
|
|
|
|
|
+ - ssh-keyscan -p 222 -t rsa gogs.infra.flowdat.com >> ~/.ssh/known_hosts
|
|
- git fetch --tags
|
|
- 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/VendorSoftwareFlowdat3/GeoserverBundle.git ; fi
|
|
- 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/GeoserverBundle.git ; fi
|
|
- git checkout $CI_COMMIT_REF_NAME
|
|
- git checkout $CI_COMMIT_REF_NAME
|
|
- - git push -u gogs $CI_COMMIT_REF_NAME --tags
|
|
|
|
|
|
+ - chmod 0600 keys/* && eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa && git push -u gogs $CI_COMMIT_REF_NAME --tags
|
|
only:
|
|
only:
|
|
- pushes
|
|
- pushes
|
|
- branches
|
|
- branches
|