refactor(tazjin/dns): Add zone validity checks in CI
Same as //ops/dns Change-Id: I0399efd2e48956ec91833386adff27d94d08ef1e Reviewed-on: https://cl.tvl.fyi/c/depot/+/3013 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
b2c0b74744
commit
605302091d
4 changed files with 17 additions and 2 deletions
12
users/tazjin/dns/import
Executable file
12
users/tazjin/dns/import
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
set -ue
|
||||
|
||||
# Imports a zone file into Google Cloud DNS
|
||||
readonly ZONE="${1}"
|
||||
readonly FILE="${2}"
|
||||
|
||||
gcloud dns record-sets import "${FILE}" \
|
||||
--project composite-watch-759 \
|
||||
--zone-file-format \
|
||||
--delete-all-existing \
|
||||
--zone "${ZONE}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue