Skip to content
Snippets Groups Projects
Unverified Commit abdc7f0f authored by Daniel Siepmann's avatar Daniel Siepmann
Browse files

TASK: Add sync to github via pipelines

* To make github an auto mirror
parent 3a376620
1 merge request!67Feature/sync to github
Pipeline #7 failed with stages
in 23 seconds
......@@ -5,8 +5,23 @@ before_script:
- mkdir -p result
stages:
- sync
- test
sync:github:
stage: sync
before_script:
- apt-get -y update && apt-get -y upgrade
- apt-get -y install openssh-client rsync
# 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 push github
lint:coding-guideline:
image: php:7.0-alpine
stage: test
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment