diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a6a5da679fe037def8d87c12bdae7f48870ba3a3..2a81fe86f9a9eea45c87871452958ac9ce5b9433 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,18 +6,18 @@ stages: configure-certs: stage: configure script: - - sudo certbot certonly --standalone --preferred-challenges http -d dbrepo-docs.ossdip.at --agree-tos --keep-until-expiring + - make configure build-mkdocs: stage: build needs: - configure-certs script: - - mkdocs build + - make build deploy-mkdocs: stage: deploy needs: - build-mkdocs script: - - sudo cp -r ./site/* /usr/share/nginx/html/dbrepo-docs.ossdip.at/ + - make deploy diff --git a/Makefile b/Makefile index 51fcef1ec60ce38d1e38b73f91077fb68fe60a28..c13d91fa61845207bac6a7f5036f5f189960a48f 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,9 @@ verify: build: mkdocs build - sudo cp -r ./site/* /usr/share/nginx/html/dbrepo-docs.ossdip.at/ -install: build +configure: sudo certbot certonly --standalone --preferred-challenges http -d dbrepo-docs.ossdip.at --agree-tos --keep-until-expiring + +deploy: + sudo cp -r ./site/* /usr/share/nginx/html/dbrepo-docs.ossdip.at/