Merge pull request from nix-community/dns-updates

Dns updates
This commit is contained in:
Jonas Chevalier 2021-01-18 17:34:36 +00:00 committed by GitHub
commit b722850fb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 37 deletions

View file

@ -12,4 +12,4 @@ jobs:
extraPullNames: nixpkgs-update
name: nix-community
signingKey: ${{ secrets.CACHIX_SIGNING_KEY }}
- run: nix-build
- run: ./ci.sh

8
ci.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Run this command to reproduce CI
set -euo pipefail
cd "$(dirname "$0")"
out=$(nix-build nix -A nix-build-uncached)
"$out/bin/nix-build-uncached"

View file

@ -1,34 +0,0 @@
# This domain is deprecated. We use nix-community.org
locals {
cloudflare_zone_id = "ea3afc8656765143b2d5b7501c243aa7"
}
resource "cloudflare_record" "build01-A" {
zone_id = local.cloudflare_zone_id
name = "build01"
value = "94.130.143.84"
type = "A"
}
resource "cloudflare_record" "build01-AAAA" {
zone_id = local.cloudflare_zone_id
name = "build01"
value = "2a01:4f8:13b:2ceb::1"
type = "AAAA"
}
resource "cloudflare_record" "apex-A" {
zone_id = local.cloudflare_zone_id
name = "@"
value = "nix-community.github.io"
type = "CNAME"
proxied = false
}
# Any email coming from that domain are SPAM
resource "cloudflare_record" "apex-TXT" {
zone_id = local.cloudflare_zone_id
name = "@"
value = "v=spf1 -all"
type = "TXT"
}

View file

@ -16,17 +16,32 @@ resource "cloudflare_record" "nix-community-org-build01-AAAA" {
type = "AAAA"
}
resource "cloudflare_record" "nix-community-org-build02-A" {
zone_id = local.nix_community_org_zone_id
name = "build02"
value = "95.217.109.189"
type = "A"
}
# TODO: add IPv6
# resource "cloudflare_record" "nix-community-org-build02-AAAA" {
# zone_id = local.nix_community_org_zone_id
# name = "build02"
# value = "2a01:4f9:4a:2b02::1"
# type = "AAAA"
# }
resource "cloudflare_record" "nix-community-org-hydra-CNAME" {
zone_id = local.nix_community_org_zone_id
name = "hydra"
value = "build01.nix-community.com"
value = "build01.nix-community.org"
type = "CNAME"
}
resource "cloudflare_record" "nix-community-org-search-CNAME" {
zone_id = local.nix_community_org_zone_id
name = "search"
value = "build01.nix-community.com"
value = "build01.nix-community.org"
type = "CNAME"
}