qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
Add a ci-docs image and a convey.yml to build it
release-2.x.y
2019-04-15, Gary Kramlich
67e94f90e55b
Parents
ab22956bebb8
Children
abe8010bbae0
a2351c2778ff
Add a ci-docs image and a convey.yml to build it
2 files changed, 75 insertions(+), 0 deletions(-)
+69
-0
convey.yml
+6
-0
doc/Dockerfile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convey.yml Mon Apr 15 04:41:48 2019 -0500
@@ -0,0 +1,69 @@
+# vi:et:ts=2 sw=2 sts=2
+environment:
+ - GNT_VERSION=next
+ - DOCS_TAG=libgnt/docs:${GNT_VERSION}
+
+tasks:
+ import:
+ type: docker/import
+ files: .:.
+
+ login:
+ type: docker/login
+ username: ${DOCKERHUB_USERNAME}
+ password: ${DOCKERHUB_PASSWORD}
+ server: docker.io
+ logout:
+ type: docker/logout
+ server: docker.io
+
+ clean:
+ type: convey/clean
+ files:
+ - build-convey
+
+ build-docs:
+ type: docker/run
+ image: libgnt/builders:debian-buster-amd64
+ script:
+ - set -ex
+ - cd ${CONVEY_WORKSPACE}
+ - meson build-convey
+ - ninja -C build-convey libgnt-doc
+ build-docs-image:
+ type: docker/build
+ dockerfile: doc/Dockerfile
+ tag: ${DOCS_TAG}
+ files:
+ - build-convey/doc/html:.
+ publish-docs-image:
+ type: docker/push
+ image: ${DOCS_TAG}
+
+plans:
+ docs:
+ stages:
+ - tasks:
+ - import
+ - build-docs
+ - build-docs-image
+ ci-docs:
+ stages:
+ - name: prep
+ tasks:
+ - login
+ - name: build
+ tasks:
+ - import
+ - build-docs
+ - build-docs-image
+ - publish-docs-image
+ - name: final
+ run: always
+ tasks:
+ - logout
+
+ clean:
+ stages:
+ - tasks: clean
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/doc/Dockerfile Mon Apr 15 04:41:48 2019 -0500
@@ -0,0 +1,6 @@
+FROM rwgrim/goserve
+
+EXPOSE 3000
+
+COPY html html
+