container-pre-commit/.woodpecker/.test.yaml
Henrik Hüttemann 54e5a7c358
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline failed
WIP
2024-06-20 23:12:26 +02:00

61 lines
1.5 KiB
YAML

skip_clone: true
when:
- event: push
depends_on:
- build
variables:
- &image 'git.verdigado.com/verdigado-images/container-pre-commit:${CI_COMMIT_SHA}'
steps:
await-image:
image: alpine
environment:
IMAGE: *image
commands:
- echo -${CI_COMMIT_SHA}-
- apk add --update --no-cache img
- 'while !(( img pull $IMAGE 2>&1 | grep --quiet "Error: failed to unmount" )) ; do echo "Awaiting image $IMAGE..."; sleep 3; done'
- echo 'found.'
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
depends_on:
- await-image
- salt clone
environment:
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
commands:
- cd salt
- pre-commit run --all-files
rocketchat2matrix clone:
image: woodpeckerci/plugin-git
settings:
remote: https://git.verdigado.com/NB-Public/rocketchat2matrix.git
path: rocketchat2matrix
sha: ''
ref: refs/heads/master
branch: master
rocketchat2matrix pre-commit:
image: *image
depends_on:
- await-image
- rocketchat2matrix clone
environment:
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
commands:
- cd rocketchat2matrix
- pre-commit run --all-files