Skip to content

Commit

Permalink
docs: Add example for GitHub Actions (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
meyfa authored Dec 30, 2024
1 parent 74afffb commit 9807f8a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Default ignored files
.DS_Store
.idea
.vscode
.env
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ To run `yamllint` on the current directory:
docker run --rm --user yamllint -v "$(pwd):/data" contane/yamllint -f colored .
```

### GitHub Actions

To use this image in a GitHub Actions workflow, add the following to your `.github/workflows/*.yml`:

```yaml
jobs:
yamllint:
runs-on: ubuntu-latest
container:
image: contane/yamllint
steps:
- uses: actions/checkout@v4
- run: yamllint -f colored .
```
### GitLab CI
To use this image in a GitLab CI pipeline, add the following to your `.gitlab-ci.yml`:
Expand Down

0 comments on commit 9807f8a

Please sign in to comment.