]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
.gitlab-ci.yml: use environments for documentation versioning docs-develop-doc-e7z1sj/deployments/2653
authorOto Šťáva <oto.stava@nic.cz>
Tue, 29 Aug 2023 08:38:13 +0000 (10:38 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Tue, 29 Aug 2023 14:00:41 +0000 (16:00 +0200)
commitc863e14785e08741af78d8cb282fc7eb39966e47
tree7f51468856a070f8790f04cb537f9ca4447b6d46
parent2e4244e435ba5dae82cffebf9e03d92967f9cd17
.gitlab-ci.yml: use environments for documentation versioning

This leverages Environments on GitLab to expose different versions of
Knot Resolver docs. The `docs:build` job builds the documentation and
exposes it via job artifacts. Then `docs:develop` (for branches) and
`docs:release` (for tags) take these artifacts and expose them via an
Environment link (an example of this in action may be seen at
[https://gitlab.nic.cz/ostava/knot-resolver/-/environments]).

There is also an optional, manually runnable `docs:public` job, which,
when run, propagates the documentation to the main GitLab Pages of the
project (e.g. [https://knot.pages.nic.cz/knot-resolver]) - this will
probably be mostly used for the latest release, although this setup
pretty much allows us to swap it for whatever version we like at any
time.
.gitlab-ci.yml