Skip to content
Snippets Groups Projects

.gitlab-ci.yml: use environments for documentation versioning

Merged Oto Šťáva requested to merge doc-envs into 6.0
  1. Aug 29, 2023
    • Oto Šťáva's avatar
      .gitlab-ci.yml: use environments for documentation versioning · c863e147
      Oto Šťáva authored
      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.
      c863e147
Loading