Commit 48191b67 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

Merge branch '49-docs-document-new-remote-includes-from-gitlab-pages' into 'main'

docs: document new remote includes from gitlab pages

Closes #49

See merge request just-ci/templates!108
parents 5933b02d d9360655
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -72,16 +72,14 @@ to:

## Choosing a template

You can import our templates in your projects using GitLab
You can import our templates in your projects using GitLab remote
[include](https://docs.gitlab.com/ee/ci/yaml/includes.html) functionality. Here
is an example `.gitlab-ci.yml` importing the python template:

```yaml
---
include:
  - project: just-ci/templates
    file: templates/python.yml
    ref: v6.4.0
  - remote: https://just-ci.gitlab.io/jobs/v6.4.0/templates/python.yml
```

The above is a template for Python projects. Other templates can be found in
@@ -100,9 +98,7 @@ you want you can always disable specific jobs with custom rules.
```yaml
---
include:
  - project: just-ci/templates
    file: templates/python.yml
    ref: v6.4.0
  - remote: https://just-ci.gitlab.io/jobs/v6.4.0/templates/python.yml

python:pytest:
  rules:
@@ -122,9 +118,7 @@ there has been a breaking change in `master`, use an older tag like this:
```yaml
---
include:
  - project: just-ci/templates
    file: python/pylint.yml
    ref: v3.19.2
  - remote: https://just-ci.gitlab.io/jobs/v3.19.2/python/pylint.yml
```

# Monorepo (multiple Dockerfiles) or polyrepo (one Dockerfile)