Compare commits

..

10 commits

Author SHA1 Message Date
0d2166e9ef
ci: add deployment pipeline for production documentation
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/pr Build is passing
2025-08-23 15:03:07 +03:30
d9079ac373
revert: last commit
All checks were successful
continuous-integration/drone/pr Build is passing
2025-08-23 15:00:22 +03:30
e5ba9f85f8
testing if deployment works
All checks were successful
continuous-integration/drone/pr Build is passing
2025-08-23 14:59:44 +03:30
c717e40551
ci: remove sudo
All checks were successful
continuous-integration/drone/pr Build is passing
2025-08-23 14:58:54 +03:30
ab9bf1540b
revert: last commit changes
Some checks failed
continuous-integration/drone/pr Build is failing
2025-08-23 14:58:10 +03:30
b29b07cbe7
ci: elevated doc step
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
2025-08-23 14:57:33 +03:30
11a4d6d17d
ci: move documentation step to ryali
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
2025-08-23 14:55:59 +03:30
cec117d127
ci: fix quote problem (i hope)
Some checks reported errors
continuous-integration/drone/pr Build was killed
2025-08-23 14:45:55 +03:30
03916b0f3e
ci: remote -tt option from ssh commands
Some checks failed
continuous-integration/drone/pr Build is failing
2025-08-23 14:42:35 +03:30
756b5aee81
ci: fix fix fix
Some checks failed
continuous-integration/drone/pr Build is failing
2025-08-23 14:35:25 +03:30

View file

@ -91,8 +91,9 @@
# ---
kind: pipeline
type: docker
name: documentation
name: documentation — development
node:
environment: ryali
trigger:
branch:
- main
@ -102,7 +103,6 @@ steps:
image: documentation:latest
pull: if-not-exists
commands:
# Build docs
- pwd
- cd docs
- mkdir generated
@ -110,15 +110,31 @@ steps:
- touch generated/api.rst
- sphinx-build -M html . .
- mv ./html light_docs_dev_staging
- rm -rf /light_docs_dev/*
- mv ./html/* /light_docs_dev/
# Stage
- ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/light_docs_dev_staging'
- scp -r './light_docs_dev_staging' 'light@5.75.206.84:/home/light/'
---
# Move to endpoint
- ssh -tt 'light@5.75.206.84' 'sudo rm -rf "/home/light/light_docs_dev/*"'
- ssh -tt 'light@5.75.206.84' 'sudo mv /home/light/light_docs_dev_staging/* /home/light/light_docs_dev/'
kind: pipeline
type: docker
name: documentation — production
node:
environment: ryali
trigger:
event:
- tag
# Remove staging
- ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/light_docs_dev_staging'
steps:
- name: build and deploy
image: documentation:latest
pull: if-not-exists
commands:
- pwd
- cd docs
- mkdir generated
- touch generated/changelogs.rst
- touch generated/api.rst
- sphinx-build -M html . .
- rm -rf /light_docs/*
- mv ./html/* /light_docs/