feat: Log CNAME expectations on mismatch
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
PapaTutuWawa 2024-01-06 20:09:59 +01:00
parent 2fb1e36b06
commit c0b87be246

View File

@ -86,6 +86,7 @@ func lookupRepositoryAndCache(username, reponame, branchName, host, domain, path
log.Debugf("CNAME Content: %s", cnameContent)
if cnameContent != cname {
log.Warnf("CNAME mismatch: Got '%s', expected '%s'", cname, cnameContent)
return nil, errors.New("CNAME mismatch")
}
}