From d1982f8b3cbe58819b599a1bde51984504422e23 Mon Sep 17 00:00:00 2001 From: Antenore Gatta Date: Fri, 25 Jan 2019 14:28:23 +0100 Subject: Tryng to fix pushing to remminadoc.gitlab.io --- .gitlab-ci.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6e7ea5a..76ec0ab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,23 @@ 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 + +## +## Optionally, if you will be using any Git commands, set the user name and +## and email. +## +#- git config --global user.email "user@example.com" +#- git config --global user.name "User name" +- git config --global user.name "${GITLAB_USER_NAME}" +- git config --global user.email "${GITLAB_USER_EMAIL}" + + remminadoc build: stage: updsource before_script: @@ -19,8 +36,6 @@ remminadoc build: - cd Remmina - doxygen - cd ../RemminaDoc - - git config --global user.name "${GITLAB_USER_NAME}" - - git config --global user.email "${GITLAB_USER_EMAIL}" - git add --all - git commit -am "Automatic doc build from remmina-ci" - git remote set-url origin git@gitlab.com:Remmina/remminadoc.gitlab.io.git -- cgit v1.2.3