Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
push:
branches:
- main
- token-refresh # todo: remove hotwire
- liveness-stall # todo: remove hotwire
jobs:
publish:
runs-on: self-hosted
Expand Down
7 changes: 2 additions & 5 deletions internal/civo/civo.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,14 @@ func (c *Configuration) TestDomainLiveness(domainName, domainID string) bool {
log.Info().Msgf("%s", civoRecordName)
ips, err := net.LookupTXT(civoRecordName)
if err != nil {
log.Warn().Msgf("Error lookuping up txt record %s, error: %s", civoRecordName, err)
ips, err = dns.BackupResolver.LookupTXT(context.Background(), civoRecordName)
}

log.Info().Msgf("%s", ips)

if err != nil {
log.Warn().Msgf("Could not get record name %s - waiting 10 seconds and trying again: \nerror: %s", civoRecordName, err)
log.Warn().Msgf("Could not get record name %s - waiting 10 seconds and trying again", civoRecordName)
time.Sleep(10 * time.Second)
} else {
for _, ip := range ips {
// todo check ip against route53RecordValue in some capacity so we can pivot the value for testing
log.Info().Msgf("%s. in TXT record value: %s", civoRecordName, ip)
count = 101
}
Expand Down