1#!/usr/bin/env bash
2
3SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4pushd $SCRIPT_DIR
5
6source $SCRIPT_DIR/ci-common.inc
7
8set -e
9set -x
10
11modulemd_version=${1:-latest}
12os=fedora
13release=32
14repository=quay.io
15image=fedora/fedora:${release}-$(uname -m)
16
17# Override the standard tests with the doc generation template
18mmd_run_docker_tests \
19    os=$os \
20    release=$release \
21    repository=$repository \
22    image=$image \
23    test_template="docs/Dockerfile.tmpl" \
24    test_image="libmodulemd-docs-$os:$release" \
25    oci_extra_args="
26        --env MODULEMD_VERSION=$modulemd_version
27        --volume=$GITHUB_WORKSPACE:/builddir
28    "
29
30popd # $SCRIPT_DIR
31