42 lines
864 B
YAML
42 lines
864 B
YAML
skip_clone: true
|
|
|
|
when:
|
|
- event: push
|
|
|
|
depends_on:
|
|
- build
|
|
|
|
variables:
|
|
- &image 'git.verdigado.com/verdigado-images/container-pre-commit:${CI_COMMIT_SHA}'
|
|
|
|
steps:
|
|
salt clone:
|
|
image: woodpeckerci/plugin-git
|
|
depends_on:
|
|
- build
|
|
settings:
|
|
remote: https://git.verdigado.com/verdigado-Privileged/Salt.git
|
|
path: salt
|
|
sha: ''
|
|
ref: refs/heads/master
|
|
branch: master
|
|
|
|
debug:
|
|
image: docker
|
|
environment:
|
|
test: *image
|
|
commands:
|
|
- 'echo image: *image'
|
|
- 'echo pulling $test'
|
|
- while ! docker pull $test ; do echo try; sleep 1; done
|
|
|
|
salt pre-commit:
|
|
image: *image
|
|
depends_on:
|
|
- debug
|
|
- salt clone
|
|
environment:
|
|
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
|
|
commands:
|
|
- cd salt
|
|
- pre-commit run --all-files
|