libflint/.gitlab-ci.yml

21 lines
628 B
YAML

image: polinux/mkdocs
variables:
GIT_SUBMODULE_STRATEGY: recursive
docs:
timeout: 5 minutes
script:
- apk add openssh-client
- mkdir -p ~/.ssh
- ssh-keyscan -H fputs.com >> ~/.ssh/known_hosts
- echo "$ssh_key" >> ~/.ssh/id_rsa
- chmod -R 700 ~/.ssh
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_rsa
- mkdocs build
- ssh debian@fputs.com rm -rf /var/www/fputs/docs/libflint
- ssh debian@fputs.com mkdir -p /var/www/fputs.com/docs/libflint
- ssh debian@fputs.com chmod 755 /var/www/fputs.com/docs/libflint
- scp -r ./site/* debian@fputs.com:/var/www/fputs.com/docs/libflint/