This commit is contained in:
parent
a65b36e2b8
commit
a3a3823304
26
.drone.yml
26
.drone.yml
@ -30,32 +30,6 @@ steps:
|
|||||||
- docker push "$DOCKER_USERNAME/producer-endpoint"
|
- docker push "$DOCKER_USERNAME/producer-endpoint"
|
||||||
- docker push "$DOCKER_USERNAME/producer-endpoint:$DRONE_BUILD_NUMBER"
|
- docker push "$DOCKER_USERNAME/producer-endpoint:$DRONE_BUILD_NUMBER"
|
||||||
|
|
||||||
- name: make_docs
|
|
||||||
image: python:3.8
|
|
||||||
commands:
|
|
||||||
- pip3 install Sphinx sphinx_rtd_theme
|
|
||||||
- pip3 install -r requirements.txt
|
|
||||||
# - cd docs
|
|
||||||
# - 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:
|
||||||
|
Reference in New Issue
Block a user