use custom dind to build doc container image
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-04-28 20:54:22 +02:00
parent 68a57a8c4e
commit 8a79853559

View File

@ -34,20 +34,23 @@ steps:
- cd docs - cd docs
- make html - make html
- name: build-docs - name: build_docs
image: banzaicloud/drone-kaniko image: docker:stable-dind
settings: volumes:
dockerfile: docs/Dockerfile - name: dockersock
context: ${PWD}/docs/ path: /var/run
registry: registry.kmlabz.com environment:
repo: goldenpogacsa/consumer-api-docs DOCKER_USERNAME:
username:
from_secret: DOCKER_USERNAME from_secret: DOCKER_USERNAME
password: DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD from_secret: DOCKER_PASSWORD
tags: commands:
- latest - cd docs
- ${DRONE_BUILD_NUMBER} - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com
- docker build -t="registry.kmlabz.com/goldenpogacsa/consumer-api-docs" .
- docker build -t="registry.kmlabz.com/goldenpogacsa/consumer-api-docs:$DRONE_BUILD_NUMBER" .
- docker push "registry.kmlabz.com/goldenpogacsa/consumer-api-docs"
- docker push "registry.kmlabz.com/goldenpogacsa/consumer-api-docs:$DRONE_BUILD_NUMBER"
- name: slack - name: slack
image: plugins/slack image: plugins/slack
@ -58,3 +61,15 @@ steps:
icon_url: https://cloudcdn.tormakristof.eu/static/drone.svg icon_url: https://cloudcdn.tormakristof.eu/static/drone.svg
when: when:
status: [ failure ] status: [ failure ]
services:
- name: docker
image: docker:stable-dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}