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
All threads resolved!

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.

Edited by Oto Šťáva

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Vladimír Čunát resolved all threads

    resolved all threads

  • Vladimír Čunát approved this merge request

    approved this merge request

  • Aleš Mrázek approved this merge request

    approved this merge request

  • Vladimír Čunát marked this merge request as ready

    marked this merge request as ready

  • mentioned in commit e925b371

  • Please register or sign in to reply
    Loading