Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3927904
D1878.id4744.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D1878.id4744.diff
View Options
diff --git a/roles/webserver-content/org/nasqueron/docs.sls b/roles/webserver-content/org/nasqueron/docs.sls
--- a/roles/webserver-content/org/nasqueron/docs.sls
+++ b/roles/webserver-content/org/nasqueron/docs.sls
@@ -7,7 +7,7 @@
{% if salt['node.has_web_content'](".org/nasqueron/docs") %}
-{% from "map.jinja" import packages with context %}
+{% from "map.jinja" import dirs, packages with context %}
# -------------------------------------------------------------
# Base directory
@@ -19,6 +19,20 @@
- group: web
- dir_mode: 755
+# -------------------------------------------------------------
+# Software to build the docs
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+sphinx:
+ pkg.installed:
+ - name: {{ packages.sphinx }}
+
+{{ dirs.bin }}/deploy-docker-registry-api-doc:
+ file.managed:
+ - source: salt://roles/webserver-content/org/nasqueron/files/build-docs-salt-wrapper.sh
+ - user: deploy
+ - mode: 755
+
# -------------------------------------------------------------
# Deploy a rSW docs dir HTML build to docs.n.o/salt-wrapper
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -58,11 +72,21 @@
- m_name: limiting-factor-doc
# -------------------------------------------------------------
-# Software to build the docs
+# Deploy a rAPIREG docs dir HTML build to docs.n.o/docker-registry-api
+#
+# Job: https://cd.nasqueron.org/job/docker-registry-api-doc/
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-sphinx:
- pkg.installed:
- - name: {{ packages.sphinx }}
+/var/wwwroot/nasqueron.org/docs/docker-registry-api/rust:
+ file.directory:
+ - user: deploy
+ - group: web
+ - dir_mode: 755
+ - makedirs: True
+
+limiting_factor_doc_build:
+ module.run:
+ - name: jenkins.build_job
+ - m_name: docker-registry-api
{% endif %}
diff --git a/roles/webserver-content/org/nasqueron/files/deploy-docker-registry-api-doc.sh b/roles/webserver-content/org/nasqueron/files/deploy-docker-registry-api-doc.sh
new file mode 100644
--- /dev/null
+++ b/roles/webserver-content/org/nasqueron/files/deploy-docker-registry-api-doc.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# -------------------------------------------------------------
+# Nasqueron Docs
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/webserver-content/org/nasqueron/files/build-docs-salt-wrapper.sh
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+TARBALL_PATH=~deploy/workspace
+DOC_PATH=/var/wwwroot/nasqueron.org/docs/docker-registry-api
+
+tar xzf $TARBALL_PATH/doc-openapi.tar.gz -C $DOC_PATH/
+tar xzf $TARBALL_PATH/doc-rust.tar.gz -C $DOC_PATH/rust/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 02:25 (6 m, 21 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2311591
Default Alt Text
D1878.id4744.diff (2 KB)
Attached To
Mode
D1878: Deploy Nasqueron private Docker registry API documentation
Attached
Detach File
Event Timeline
Log In to Comment