From abdc7f0f72dacc4616091ae183278a3b3cbef487 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Tue, 11 Apr 2017 15:49:01 +0200 Subject: [PATCH] TASK: Add sync to github via pipelines * To make github an auto mirror --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 70c0f43..32e099a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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