Compare commits

..

2 Commits

Author SHA1 Message Date
872c5f4886
disable docs site
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-02 22:24:57 +03:00
84c2fc8815
disable docs site 2023-12-02 22:24:50 +03:00

View File

@ -103,54 +103,54 @@ 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: 34e42dae6623cfc54bc51b79219a79564fcbac0f5e7463d3d9ac485756350b4b
... ...