2023-11-07 16:35:27 +01:00
|
|
|
---
|
|
|
|
depends_on:
|
|
|
|
- gitleaks
|
2024-01-24 20:55:53 +01:00
|
|
|
|
2023-11-07 16:35:27 +01:00
|
|
|
steps:
|
2024-01-24 22:10:15 +01:00
|
|
|
- name: ansible-lint
|
2023-11-07 16:35:27 +01:00
|
|
|
image: quay.io/ansible/creator-ee
|
|
|
|
commands:
|
|
|
|
- ansible-lint --version
|
|
|
|
- echo $VAULT-PASS > ./vault-pass.yml # nach des Secret in Großschreibung
|
|
|
|
- ansible-galaxy install -r requirements.yml
|
|
|
|
- ansible-lint --force-color --format pep8
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- tag
|
|
|
|
secret: [vault-pass] #dieses Secret darf verwendet werden
|
2024-01-24 22:09:19 +01:00
|
|
|
|
|
|
|
- name: notify
|
|
|
|
image: registry.mgrote.net/allzweckcontainer:latest
|
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
s-nail \
|
|
|
|
-s "CI: [$CI_PIPELINE_STATUS] $CI_REPO" \
|
|
|
|
-S mta=smtp://docker10.mgrote.net:1025 \
|
|
|
|
-S smtp-auth=none \
|
|
|
|
-S v15-compat \
|
|
|
|
-S from=ci@mgrote.net \
|
|
|
|
$CI_COMMIT_AUTHOR_EMAIL <<EOF
|
|
|
|
Repository: $CI_REPO
|
|
|
|
Commit: $CI_COMMIT_SHA
|
|
|
|
URL: $CI_PREV_PIPELINE_URL
|
|
|
|
URL-Git: $CI_PIPELINE_FORGE_URL
|
|
|
|
Status: $CI_PIPELINE_STATUS
|
|
|
|
EOF
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
runs_on:
|
|
|
|
- failure
|