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