docs(readme): update usage infos

This commit is contained in:
technofab 2025-03-04 16:23:51 +01:00
parent f1b8b5a210
commit 6fa2806219

View file

@ -12,7 +12,7 @@ Also makes it possible to split CI parts in a separate module which can be impor
# flake.nix # flake.nix
{ {
... ...
inputs.nix-gitlab-ci.url = "gitlab:TECHNOFAB/nix-gitlab-ci?dir=lib"; inputs.nix-gitlab-ci.url = "gitlab:TECHNOFAB/nix-gitlab-ci/<version>?dir=lib"; # recommendation: pin to the latest release/version
outputs = {...}: flake-parts.lib.mkFlake {...} { outputs = {...}: flake-parts.lib.mkFlake {...} {
imports = [ imports = [
@ -48,7 +48,9 @@ Also makes it possible to split CI parts in a separate module which can be impor
```yaml ```yaml
# .gitlab-ci.yml # .gitlab-ci.yml
include: include:
- component: gitlab.com/TECHNOFAB/nix-gitlab-ci/nix-gitlab-ci@<version> # recommendation: use the latest version (try not to use latest) - component: gitlab.com/TECHNOFAB/nix-gitlab-ci/nix-gitlab-ci@<version> # recommendation: pin to the latest release/version (don't use "main" etc.)
inputs:
version: <version> # docker image tag, use the same version as a above
``` ```
## Utilities ## Utilities