disable docs site

This commit is contained in:
Struchkov Mark 2023-12-02 22:24:50 +03:00
parent 227e38077b
commit 84c2fc8815
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -103,52 +103,52 @@ steps:
image_pull_secrets: image_pull_secrets:
- DOCKER_AUTH - DOCKER_AUTH
--- #---
kind: pipeline #kind: pipeline
type: docker #type: docker
name: create-develop-docs-site #name: create-develop-docs-site
#
trigger: #trigger:
branch: # branch:
- develop # - develop
- docs # - docs
#
clone: #clone:
disable: true # disable: true
#
steps: #steps:
#
- name: build docs # - name: build docs
image: private.docker.struchkov.dev/mkdocs:latest # image: private.docker.struchkov.dev/mkdocs:latest
volumes: # volumes:
- name: mkdocs_cache # - name: mkdocs_cache
path: ${DRONE_WORKSPACE}/documentation/ru/.cache # path: ${DRONE_WORKSPACE}/documentation/ru/.cache
environment: # environment:
GIT_SSH: # GIT_SSH:
from_secret: GIT_SSH # from_secret: GIT_SSH
GIT_SSH_COMMAND: "ssh -i ~/.ssh/id_rsa -p 222" # GIT_SSH_COMMAND: "ssh -i ~/.ssh/id_rsa -p 222"
commands: # commands:
- eval $(ssh-agent -s) # - eval $(ssh-agent -s)
- mkdir -p ~/.ssh # - mkdir -p ~/.ssh
- chmod 700 ~/.ssh # - chmod 700 ~/.ssh
- echo "$GIT_SSH" >> ~/.ssh/id_rsa # - echo "$GIT_SSH" >> ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa # - chmod 600 ~/.ssh/id_rsa
- ssh-keyscan -p 222 git.struchkov.dev >> ~/.ssh/known_hosts # - ssh-keyscan -p 222 git.struchkov.dev >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts # - chmod 644 ~/.ssh/known_hosts
- git config --global user.name "${DRONE_COMMIT_AUTHOR_NAME}" # - git config --global user.name "${DRONE_COMMIT_AUTHOR_NAME}"
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}" # - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
- git clone ${DRONE_GIT_SSH_URL} . # - git clone ${DRONE_GIT_SSH_URL} .
- git checkout $DRONE_COMMIT # - git checkout $DRONE_COMMIT
- cd documentation/spring/ru # - cd documentation/spring/ru
- mike deploy --prefix godfather-telegram/spring/ru --branch docs-deploy --push --update-aliases develop # - mike deploy --prefix godfather-telegram/spring/ru --branch docs-deploy --push --update-aliases develop
#
image_pull_secrets: #image_pull_secrets:
- DOCKER_AUTH # - DOCKER_AUTH
#
volumes: #volumes:
- name: mkdocs_cache # - name: mkdocs_cache
host: # host:
path: /drone/volume/mkdocs_cache/godfather_telegram/spring/ru # path: /drone/volume/mkdocs_cache/godfather_telegram/spring/ru
--- ---
kind: signature kind: signature
hmac: a34ade73094a4c0e8416102e384c4e36b5612f81331447d69589f632a3e1cde4 hmac: a34ade73094a4c0e8416102e384c4e36b5612f81331447d69589f632a3e1cde4