Pre script for ssh agent
This commit is contained in:
parent
9983824e15
commit
fc5d925c60
@ -96,6 +96,12 @@ build-wiki:
|
|||||||
only: [ "master" ]
|
only: [ "master" ]
|
||||||
stage: build
|
stage: build
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- eval $(ssh-agent -s)
|
||||||
|
- echo "${SSH_PRIVATE_KEY}" | ssh-add - > /dev/null
|
||||||
|
- mkdir -p ~/.ssh/
|
||||||
|
- chmod 700 ~/.ssh/
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cd docs/
|
- cd docs/
|
||||||
- hugo
|
- hugo
|
||||||
|
Loading…
Reference in New Issue
Block a user