This commit is contained in:
Michael Grote 2024-01-24 22:09:19 +01:00
parent 910f035529
commit 82758c84e8
2 changed files with 32 additions and 7 deletions

View file

@ -3,7 +3,7 @@ depends_on:
- gitleaks
steps:
ansible-lint:
-name: ansible-lint:
image: quay.io/ansible/creator-ee
commands:
- ansible-lint --version
@ -15,3 +15,26 @@ steps:
exclude:
- tag
secret: [vault-pass] #dieses Secret darf verwendet werden
- 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

View file

@ -2,17 +2,18 @@
depends_on:
- gitleaks
- ansible-lint
runs_on:
- failure
skip_clone: true
steps:
notify:
name: notify
- name: notify
image: registry.mgrote.net/allzweckcontainer:latest
commands:
- |
s-nail \
-s "CI: [$CI_PIPELINE_STATUS] $CI_REPO $CI_WORKFLOW_NAME" \
-s "CI: [$CI_PIPELINE_STATUS] $CI_REPO" \
-S mta=smtp://docker10.mgrote.net:1025 \
-S smtp-auth=none \
-S v15-compat \
@ -25,6 +26,7 @@ steps:
Status: $CI_PIPELINE_STATUS
EOF
when:
event: [push]
runs_on: [ success, failure ]
event:
- push
runs_on:
- failure