diff options
-rw-r--r-- | .gitlab-ci.yml | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e73e9c6..6bc43fd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,15 +7,6 @@ variables: stages: - updsource -before_script: - - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - - eval $(ssh-agent -s) - - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - - mkdir -p ~/.ssh - - chmod 700 ~/.ssh - - git config --global user.name "${GITLAB_USER_NAME}" - - git config --global user.email "${GITLAB_USER_EMAIL}" - remminadoc build: stage: updsource before_script: @@ -25,12 +16,17 @@ remminadoc build: - apt-get install -y -qq build-essential git-core doxygen graphviz libxslt1.1 xsltproc script: + - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - git config --global user.name "${GITLAB_USER_NAME}" + - git config --global user.email "${GITLAB_USER_EMAIL}" - cd Remmina - doxygen - cd ../RemminaDoc - git add --all - - git config --global user.name "${GITLAB_USER_NAME}" - - git config --global user.email "${GITLAB_USER_EMAIL}" - git commit -am "Automatic doc build from remmina-ci" - git remote set-url origin git@gitlab.com:Remmina/remminadoc.gitlab.io.git - git push origin master |