convey.yml

Sat, 18 May 2019 23:11:27 +0000

author
Gary Kramlich <grim@reaperworld.com>
date
Sat, 18 May 2019 23:11:27 +0000
branch
release-2.x.y
changeset 1317
c44601cabcb8
parent 1182
67e94f90e55b
child 1193
9a81bdc71f40
child 1450
cfcf6ff3913e
permissions
-rw-r--r--

Merged in release-2.x.y (pull request #74)

Also deprecate gnt_file_sel_set_read_fn.

Approved-by: Gary Kramlich

# 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

mercurial