|
|
@ -13,43 +13,14 @@ trigger: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
|
|
|
|
|
|
|
|
- name: build |
|
|
|
- name: build |
|
|
|
image: ghcr.io/afritzler/mkdocs-material:8.1.0 #ARM version of mkDocs |
|
|
|
#ARM version of mkDocs |
|
|
|
|
|
|
|
image: ghcr.io/afritzler/mkdocs-material:8.1.0 |
|
|
|
pull: if-not-exists |
|
|
|
pull: if-not-exists |
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
- name: site |
|
|
|
- name: site |
|
|
|
path: /drone/src/docs |
|
|
|
path: /drone/src/docs |
|
|
|
commands: |
|
|
|
commands: |
|
|
|
# - pip install -U -r ./requirements.txt |
|
|
|
|
|
|
|
- cd doc && mkdocs build |
|
|
|
- cd doc && mkdocs build |
|
|
|
- ls -la |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# image: squidfunk/mkdocs-material:7.1.9 |
|
|
|
|
|
|
|
# volumes: |
|
|
|
|
|
|
|
# - name: site |
|
|
|
|
|
|
|
# path: /site |
|
|
|
|
|
|
|
# commands: |
|
|
|
|
|
|
|
# - pip install -U -r ./requirements.txt |
|
|
|
|
|
|
|
# - mkdocs build |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# - name: build docker image and push to registry |
|
|
|
|
|
|
|
# image: plugins/docker |
|
|
|
|
|
|
|
# volumes: |
|
|
|
|
|
|
|
# - name: Dockerfile path |
|
|
|
|
|
|
|
# path: "/src" |
|
|
|
|
|
|
|
# - name: dockersock |
|
|
|
|
|
|
|
# path: "/var/run/docker.sock" |
|
|
|
|
|
|
|
# settings: |
|
|
|
|
|
|
|
# debug: true |
|
|
|
|
|
|
|
# username: |
|
|
|
|
|
|
|
# from_secret: REGISTRY_USER |
|
|
|
|
|
|
|
# password: |
|
|
|
|
|
|
|
# from_secret: REGISTRY_PASSWORD |
|
|
|
|
|
|
|
# registry: "dockerregistry.gregandev.fr" |
|
|
|
|
|
|
|
# insecure: true |
|
|
|
|
|
|
|
# privileged: true |
|
|
|
|
|
|
|
# repo: "dockerregistry.gregandev.fr/gregandoc" |
|
|
|
|
|
|
|
# tags: ${DRONE_TAG} |
|
|
|
|
|
|
|
# dockerfile: ./Dockerfile |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy |
|
|
|
- name: deploy |
|
|
|
image: drillster/drone-rsync |
|
|
|
image: drillster/drone-rsync |
|
|
|