Merge branch 'feature/sync-to-github' into 'develop'
Feature/sync to github See merge request !67
This commit is contained in:
commit
516f6010ea
1 changed files with 16 additions and 0 deletions
|
@ -5,8 +5,24 @@ before_script:
|
||||||
- mkdir -p result
|
- mkdir -p result
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- sync
|
||||||
- test
|
- test
|
||||||
|
|
||||||
|
sync:github:
|
||||||
|
stage: sync
|
||||||
|
before_script:
|
||||||
|
- apt-get -y update && apt-get -y upgrade
|
||||||
|
- apt-get -y install openssh-client git
|
||||||
|
# SSH deploy key
|
||||||
|
- eval $(ssh-agent -s)
|
||||||
|
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
|
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||||
|
script:
|
||||||
|
- git clone --mirror ${CI_REPOSITORY_URL} mirror
|
||||||
|
- cd mirror
|
||||||
|
- git push --mirror ${MIRROR_GIT_URL}
|
||||||
|
|
||||||
lint:coding-guideline:
|
lint:coding-guideline:
|
||||||
image: php:7.0-alpine
|
image: php:7.0-alpine
|
||||||
stage: test
|
stage: test
|
||||||
|
|
Loading…
Reference in a new issue