gplugin/gplugin

71f0a1891d24
Parents d028ac082bea
Children f402012569a8
Add a convey plan to build the docs and export them.

Also remove the old container images for the docs as the static pages will be pulled in via another CI task to build the whole site.

Testing Done:
Ran the plan locally a bunch.

Reviewed at https://reviews.imfreedom.org/r/904/
  • +18 -34
    convey.yml
  • --- a/convey.yml Thu Aug 19 16:27:01 2021 -0500
    +++ b/convey.yml Tue Aug 24 00:12:10 2021 -0500
    @@ -23,6 +23,8 @@
    - fedora-32-amd64
    - fedora-33-amd64
    - fedora-rawhide-amd64
    + - gplugin-docs
    + - gplugin-gtk-docs
    - i18n
    - mingw-w64-i686
    - mingw-w64-x86_64
    @@ -67,22 +69,24 @@
    type: docker/logout
    server: ${REGISTRY}
    + docs-clean:
    + type: convey/clean
    + files:
    + - gplugin-docs
    + - gplugin-gtk-docs
    docs-build:
    type: docker/run
    image: ${DOCS_BUILD_IMAGE}
    workdir: ${CONVEY_WORKSPACE}
    script:
    - set -ex
    - - meson build-docs-${TARGET}
    - - ninja -C build-docs-${TARGET} ${TARGET}-doc
    - docs-build-image:
    - type: docker/build
    - dockerfile: ${DOCS_PATH}/Dockerfile
    - tag: ${REGISTRY}/gplugin/${TARGET}-docs:${DOCS_VERSION}
    - files: build-docs-${TARGET}/${DOCS_PATH}/html:.
    - docs-publish-image:
    - type: docker/push
    - image: ${REGISTRY}/gplugin/${TARGET}-docs:${DOCS_VERSION}
    + - meson build-docs
    + - ninja -C build-docs doc
    + docs-export:
    + type: docker/export
    + files:
    + - build-docs/gplugin/reference/html:gplugin-docs
    + - build-docs/gplugin-gtk/reference/html:gplugin-gtk-docs
    package-cloud:
    type: docker/run
    @@ -140,6 +144,10 @@
    stages:
    - tasks: [import, build-target, export-target]
    + docs:
    + stages:
    + - tasks: [docs-clean, import, docs-build, docs-export]
    +
    elementary-juno-amd64:
    environment: [DISTRO=elementary, VERSION=juno]
    stages:
    @@ -162,30 +170,6 @@
    stages:
    - tasks: [import, build, export]
    - gplugin-docs:
    - environment: [TARGET=gplugin, DOCS_PATH=gplugin/reference]
    - stages:
    - - tasks: [import, docs-build, docs-build-image]
    - gplugin-docs-ci:
    - environment: [TARGET=gplugin, DOCS_PATH=gplugin/reference]
    - stages:
    - - tasks: [import, docs-build, docs-build-image]
    - - tasks: [login, docs-publish-image]
    - - tasks: [logout]
    - run: always
    -
    - gplugin-gtk-docs:
    - environment: [TARGET=gplugin-gtk, DOCS_PATH=gplugin-gtk/reference]
    - stages:
    - - tasks: [import, docs-build, docs-build-image]
    - gplugin-gtk-docs-ci:
    - environment: [TARGET=gplugin-gtk, DOCS_PATH=gplugin-gtk/reference]
    - stages:
    - - tasks: [import, docs-build, docs-build-image]
    - - tasks: [login, docs-publish-image]
    - - tasks: [logout]
    - run: always
    -
    i18n:
    environment: [TARGET=i18n]
    stages: