diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2019-01-25 16:28:23 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2019-01-25 16:28:23 +0300 |
commit | d1982f8b3cbe58819b599a1bde51984504422e23 (patch) | |
tree | ff87f1cb876140176fa9bd660a91ba1799867c56 | |
parent | c5ba8b3333252f31b8aea111b12a4074fb02e57d (diff) |
Tryng to fix pushing to remminadoc.gitlab.io
-rw-r--r-- | .gitlab-ci.yml | 19 |
1 files 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 |