2024-06-20 16:39:03 +02:00
|
|
|
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:
|
2024-11-13 19:32:46 +01:00
|
|
|
image: alpine@sha256:1e42bbe2508154c9126d48c2b8a75420c3544343bf86fd041fb7527e017a4b4a
|
2024-06-20 16:39:03 +02:00
|
|
|
environment:
|
|
|
|
IMAGE: *image
|
|
|
|
commands:
|
|
|
|
- apk add --update --no-cache img
|
|
|
|
- 'while !(( img pull $IMAGE 2>&1 | grep -q "Error: failed to unmount" )) ; do echo "Awaiting image $IMAGE..."; sleep 3; done'
|
|
|
|
- echo 'found.'
|
|
|
|
|
|
|
|
clone salt:
|
2024-11-13 19:32:46 +01:00
|
|
|
image: woodpeckerci/plugin-git@sha256:b6d40eaba0ee4274d11c96cc0e053557e6cb024fa56d26c25419c2b4dd6fbfe8
|
2024-06-20 16:39:03 +02:00
|
|
|
settings:
|
|
|
|
remote: https://git.verdigado.com/verdigado-Privileged/Salt.git
|
|
|
|
path: salt
|
|
|
|
sha: ''
|
|
|
|
ref: refs/heads/master
|
|
|
|
branch: master
|
|
|
|
|
|
|
|
pre-commit salt:
|
|
|
|
image: *image
|
|
|
|
depends_on:
|
|
|
|
- await-image
|
|
|
|
- clone salt
|
|
|
|
environment:
|
|
|
|
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
|
|
|
|
commands:
|
|
|
|
- cd salt
|
|
|
|
- pre-commit run --all-files
|
|
|
|
|
|
|
|
clone rocketchat2matrix:
|
2024-11-13 19:32:46 +01:00
|
|
|
image: woodpeckerci/plugin-git@sha256:b6d40eaba0ee4274d11c96cc0e053557e6cb024fa56d26c25419c2b4dd6fbfe8
|
2024-06-20 16:39:03 +02:00
|
|
|
settings:
|
|
|
|
remote: https://git.verdigado.com/NB-Public/rocketchat2matrix.git
|
|
|
|
path: rocketchat2matrix
|
|
|
|
sha: ''
|
|
|
|
ref: refs/heads/main
|
|
|
|
branch: master
|
|
|
|
|
|
|
|
pre-commit rocketchat2matrix:
|
|
|
|
image: *image
|
|
|
|
depends_on:
|
|
|
|
- await-image
|
|
|
|
- clone rocketchat2matrix
|
|
|
|
environment:
|
|
|
|
- SKIP=no-commit-to-branch # Ignore "don't commit to protected branch" check
|
|
|
|
commands:
|
|
|
|
- cd rocketchat2matrix
|
|
|
|
- pre-commit run --all-files
|