libgnt/libgnt

f8226e3d15d7
Export our builds so we can save the logs

Testing Done:
Ran locally without the gi-docgen subproject.

Reviewed at https://reviews.imfreedom.org/r/955/
environment:
- GNT_VERSION=latest
- DOCS_REPOSITORY=libgnt/docs
- REGISTRY_HOST=docker.io
- REPOSITORY=libgnt/builders
tasks:
build:
type: docker/run
image: ${REGISTRY_HOST}/${REPOSITORY}:${TARGET}
clean:
type: convey/clean
files:
- debian-bookworm-amd64
- debian-bullseye-amd64
- fedora-34-amd64
build-docs:
type: docker/run
image: ${REGISTRY_HOST}/${REPOSITORY}: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: ${REGISTRY_HOST}/${DOCS_REPOSITORY}:${GNT_VERSION}
files:
- build-convey/doc/html:.
publish-docs-image:
type: docker/push
image: ${REGISTRY_HOST}/${DOCS_REPOSITORY}:${GNT_VERSION}
export:
type: docker/export
files: ${TARGET}:.
import:
type: docker/import
files: .:.
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
debian-bullseye-amd64:
environment: TARGET=debian-bullseye-amd64
stages:
- tasks: [import, build]
- tasks: export
run: always
debian-bookworm-amd64:
environment: TARGET=debian-bookworm-amd64
stages:
- tasks: [import, build]
- tasks: export
run: always
fedora-34-amd64:
environment: TARGET=fedora-34-amd64
stages:
- tasks: [import, build]
- tasks: export
run: always