Merge pull request 'auto generate documentation docker image via ci' (#5) from docs into master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
commit
393188d549
22
.drone.yml
22
.drone.yml
@ -36,8 +36,8 @@ steps:
|
|||||||
- docker push "$DOCKER_USERNAME/producer"
|
- docker push "$DOCKER_USERNAME/producer"
|
||||||
- docker push "$DOCKER_USERNAME/producer:$DRONE_BUILD_NUMBER"
|
- docker push "$DOCKER_USERNAME/producer:$DRONE_BUILD_NUMBER"
|
||||||
|
|
||||||
- name: build_docs
|
- name: make_docs
|
||||||
image: python:3
|
image: python:3.8
|
||||||
commands:
|
commands:
|
||||||
- pip3 install Sphinx
|
- pip3 install Sphinx
|
||||||
- pip3 install -r requirements.txt
|
- pip3 install -r requirements.txt
|
||||||
@ -45,6 +45,24 @@ steps:
|
|||||||
- sphinx-apidoc -o source/ ../
|
- sphinx-apidoc -o source/ ../
|
||||||
- make html
|
- make html
|
||||||
|
|
||||||
|
- name: build_docs
|
||||||
|
image: docker:stable-dind
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
|
environment:
|
||||||
|
DOCKER_USERNAME:
|
||||||
|
from_secret: DOCKER_USERNAME
|
||||||
|
DOCKER_PASSWORD:
|
||||||
|
from_secret: DOCKER_PASSWORD
|
||||||
|
commands:
|
||||||
|
- cd docs
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build -t="$DOCKER_USERNAME/producer-docs" .
|
||||||
|
- docker build -t="$DOCKER_USERNAME/producer-docs:$DRONE_BUILD_NUMBER" .
|
||||||
|
- docker push "$DOCKER_USERNAME/producer-docs"
|
||||||
|
- docker push "$DOCKER_USERNAME/producer-docs:$DRONE_BUILD_NUMBER"
|
||||||
|
|
||||||
- name: slack
|
- name: slack
|
||||||
image: plugins/slack
|
image: plugins/slack
|
||||||
settings:
|
settings:
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -131,3 +131,4 @@ dmypy.json
|
|||||||
#Pycharm
|
#Pycharm
|
||||||
.idea/
|
.idea/
|
||||||
*.iml
|
*.iml
|
||||||
|
docs/source/
|
||||||
|
3
docs/Dockerfile
Normal file
3
docs/Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM httpd:2.4
|
||||||
|
|
||||||
|
COPY _build/html/ /usr/local/apache2/htdocs/
|
Reference in New Issue
Block a user