Compare commits

..

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

View file

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