Skip to content

Commit

Permalink
Merge pull request #309 from dklimpel/doc_gitlab_ci
Browse files Browse the repository at this point in the history
docs: add example for GitLab pipeline
  • Loading branch information
tcort authored May 21, 2024
2 parents 7e9668f + dd27b9a commit 0938a98
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@ To run as a [pre-commit hook](https://pre-commit.com):
args: [-q]
```

## Run in a GitLab pipeline

```yaml
linkchecker:
stage: test
image:
name: ghcr.io/tcort/markdown-link-check:3.11.2
entrypoint: ["/bin/sh", "-c"]
script:
- find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check
rules:
- changes:
- "**/*.md"
```
## Run in other tools
- [Mega-Linter](https://megalinter.io/latest/): Linters aggregator [including markdown-link-check](https://megalinter.io/latest/descriptors/markdown_markdown_link_check/)
Expand Down

0 comments on commit 0938a98

Please sign in to comment.