cfg/.config/sanity.d/deprecated-repo-runner-images.sh
Knut Ahlers b7e83d8269
Add sanity check framework
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-09-06 13:36:10 +02:00

16 lines
394 B
Bash

function sanity_deprecated_reporunner_images() {
report debug "Check for deprecated repo-runner images"
[[ -f .repo-runner.yaml ]] || {
report debug "No Repo-Runner config found"
return 0
}
grep 'quay.io/luzifer/' .repo-runner.yaml || {
report success "No Quay image found in Repo-Runner config"
return 0
}
report error "Repo-Runner config contains old Quay image"
return 1
}