grim/libgnt

Export our builds so we can save the logs
release-2.x.y
2021-09-28, Gary Kramlich
3fadbfa21320
Export our builds so we can save the logs

Testing Done:
Ran locally

Reviewed at https://reviews.imfreedom.org/r/956/
environment:
- REGISTRY=docker.io
- REPOSITORY=libgnt/builders
- DOCS_BUILD_IMAGE=${REGISTRY}/${REPOSITORY}:debian-bookworm-amd64
tasks:
build:
type: docker/run
image: docker.io/libgnt/builders:${TARGET}
clean:
type: convey/clean
files:
- debian-bookworm-amd64
- debian-bullseye-amd64
- fedora-34-amd64
- libgnt-docs
docs-clean:
type: convey/clean
files: libgnt-docs
docs-build:
type: docker/run
image: ${DOCS_BUILD_IMAGE}
workdir: ${CONVEY_WORKSPACE}
script:
- set -ex
- meson build-docs
- ninja -C build-docs libgnt-doc
docs-export:
type: docker/export
files: build-docs/doc/html:libgnt-docs
export:
type: docker/export
files: ${TARGET}:.
import:
type: docker/import
files: .:.
plans:
docs:
stages:
- tasks:
- docs-clean
- import
- docs-build
- docs-export
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