Compare commits

..

No commits in common. "0d2166e9ef47a9ee6f43ffe293a057a9317613de" and "6c16d0198e6ab5a18e64f57a8b2b487a80998927" have entirely different histories.

View file

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