|
@@ -4,8 +4,8 @@ build_branch:
|
|
GIT_STRATEGY: clone
|
|
GIT_STRATEGY: clone
|
|
script:
|
|
script:
|
|
- ssh-keyscan -p 222 -t rsa gogs.infra.flowdat.com >> ~/.ssh/known_hosts
|
|
- 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/VendorSoftwareFlowdat3/connect.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/connect.git ; fi
|
|
|
|
+ - git fetch --all
|
|
- git checkout $CI_COMMIT_REF_NAME
|
|
- git checkout $CI_COMMIT_REF_NAME
|
|
- chmod 0600 keys/* && eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa && git push -u gogs --all
|
|
- chmod 0600 keys/* && eval $(ssh-agent); ssh-add keys/gogs.drone.id_rsa && git push -u gogs --all
|
|
only:
|
|
only:
|