From 61c7bb2f78d8abe806fbdae49ceef5c3dd92389f Mon Sep 17 00:00:00 2001 From: Evan Burkey Date: Tue, 28 Feb 2023 09:58:48 -0800 Subject: [PATCH] gitlab CI --- .gitignore | 2 +- .gitlab-ci.yml | 17 +++++++++++++++++ mkdocs.yml | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitignore b/.gitignore index 9b32a43..8dd421f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,5 @@ cmake* .cache build compile_commands.json +docs site/ -web.sh \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1d21682 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,17 @@ +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 + - ssh debian@fputs.com mkdir -p /var/www/fputs.com/docs + - scp -r ./site/* debian@fputs.com:/var/www/fputs.com/docs/ diff --git a/mkdocs.yml b/mkdocs.yml index 1b7f0f3..81ef496 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ site_name: libflint -site_url: https://docs.fputs.com/libflint +site_url: https://fputs.com/docs/libflint theme: name: readthedocs nav: