29 lines
610 B
YAML
29 lines
610 B
YAML
|
skip_clone: true
|
||
|
|
||
|
when:
|
||
|
- event: push
|
||
|
|
||
|
depends_on:
|
||
|
- build
|
||
|
|
||
|
variables:
|
||
|
- &image 'git.verdigado.com/verdigado-images/container-pre-commit:46a6ee43f9f32994d4697b589afa5b8fa75950aa'
|
||
|
|
||
|
steps:
|
||
|
salt clone:
|
||
|
image: woodpeckerci/plugin-git
|
||
|
settings:
|
||
|
remote: https://git.verdigado.com/verdigado-Privileged/Salt.git
|
||
|
path: salt
|
||
|
sha: ''
|
||
|
ref: refs/heads/master
|
||
|
branch: master
|
||
|
|
||
|
salt pre-commit:
|
||
|
image: *image
|
||
|
environment:
|
||
|
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
|
||
|
commands:
|
||
|
- cd salt
|
||
|
- pre-commit run --all-files
|