]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
.gitlab-ci.yml: use environments for documentation versioning
authorOto Šťáva <oto.stava@nic.cz>
Tue, 29 Aug 2023 08:38:13 +0000 (10:38 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Tue, 9 Jan 2024 16:17:05 +0000 (17:17 +0100)
commit92e60530c0612282ea6aee3989cd3cee47b8adc5
tree2ec4be4e3df2350505e787e345bc2b37a89ee645
parentd9c96ae96f066a85d7c957ffafac2a22523ecc18
.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