qulogic/libgnt

Merged in default (pull request #30)

2019-04-17, Gary Kramlich
c17f5cba9e31
Merged in default (pull request #30)

Add a ci-docs image and a convey.yml to build it

Approved-by: Elliott Sales de Andrade
  • +60 -0
    convey.yml
  • +6 -0
    doc/Dockerfile
  • --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/convey.yml Wed Apr 17 01:47:09 2019 +0000
    @@ -0,0 +1,60 @@
    +# vi:et:ts=2 sw=2 sts=2
    +environment:
    + - GNT_VERSION=latest
    + - 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
    +
    + 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
    +
    --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/doc/Dockerfile Wed Apr 17 01:47:09 2019 +0000
    @@ -0,0 +1,6 @@
    +FROM rwgrim/goserve
    +
    +EXPOSE 3000
    +
    +COPY html html
    +