Compare commits
2 Commits
660036ae5f
...
64e3d347ed
Author | SHA1 | Date |
---|---|---|
Ariadne Conill | 64e3d347ed | |
Ariadne Conill | 261ce93daa |
|
@ -1,6 +1,6 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
validate:
|
validate:
|
||||||
image: alpine
|
image: alpine:3.16
|
||||||
when:
|
when:
|
||||||
path: "dns/**"
|
path: "dns/**"
|
||||||
event: pull_request
|
event: pull_request
|
||||||
|
@ -9,25 +9,24 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache terraform
|
- apk add --no-cache terraform
|
||||||
- terraform version
|
- terraform version
|
||||||
- |
|
- cd dns
|
||||||
cd dns
|
- terraform init
|
||||||
echo 'token = "$${LINODE_TOKEN}"' > .auto.tfvars
|
- terraform validate
|
||||||
terraform validate
|
- terraform plan -var "token=$LINODE_TOKEN"
|
||||||
terraform plan
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: alpine
|
image: alpine:3.16
|
||||||
when:
|
when:
|
||||||
path: "dns/**"
|
path: "dns/**"
|
||||||
|
branch: main
|
||||||
event: push
|
event: push
|
||||||
secrets:
|
secrets:
|
||||||
- linode_token
|
- linode_token
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache terraform
|
- apk add --no-cache terraform
|
||||||
- terraform version
|
- terraform version
|
||||||
- |
|
- cd dns
|
||||||
cd dns
|
- terraform init
|
||||||
echo 'token = "$${LINODE_TOKEN}"' > .auto.tfvars
|
- terraform validate
|
||||||
terraform validate
|
- terraform plan -out deploy.plan -var "token=$LINODE_TOKEN"
|
||||||
terraform plan -out deploy.plan
|
- terraform apply deploy.plan -var "token=$LINODE_TOKEN"
|
||||||
terraform apply deploy.plan
|
|
||||||
|
|
|
@ -149,3 +149,10 @@ resource "linode_domain_record" "apex_domainkey" {
|
||||||
record_type = "TXT"
|
record_type = "TXT"
|
||||||
target = "v=DKIM1; k=rsa; s=email; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlJGZN1aCAUd8CqyQA7Akzkvns+Wq/w70ft2xr0B8jFp0DtW8BtyLLAsErpIp5ZTDgReYGgL7cNcSsNQRn+d6ZaOBGlC/gH1T3KYfbsvavOdnbGx9gofi6x8I5QOOLhp7epK5YkaP/Igg58Zm0ni3jdeMCuX+qkJVqn2WVv8IcRtIA3zJrTYOW3lGCj1ieezl5ref+43mFvcUqidToR9XyHNmi1RowmWAofbZASXkNqZiR1P2Jw3s7q6p0fAEz6bODNOmngIlRAaKjBfDVezsaTeQJwsMg9g58GigVTSb9gMHRZon61yxWcCJtcivPug7xAVlVU+MMkDr7MfvUke5KQIDAQAB"
|
target = "v=DKIM1; k=rsa; s=email; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlJGZN1aCAUd8CqyQA7Akzkvns+Wq/w70ft2xr0B8jFp0DtW8BtyLLAsErpIp5ZTDgReYGgL7cNcSsNQRn+d6ZaOBGlC/gH1T3KYfbsvavOdnbGx9gofi6x8I5QOOLhp7epK5YkaP/Igg58Zm0ni3jdeMCuX+qkJVqn2WVv8IcRtIA3zJrTYOW3lGCj1ieezl5ref+43mFvcUqidToR9XyHNmi1RowmWAofbZASXkNqZiR1P2Jw3s7q6p0fAEz6bODNOmngIlRAaKjBfDVezsaTeQJwsMg9g58GigVTSb9gMHRZon61yxWcCJtcivPug7xAVlVU+MMkDr7MfvUke5KQIDAQAB"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "linode_domain_record" "apex_test" {
|
||||||
|
domain_id = "${linode_domain.treehouse_domain.id}"
|
||||||
|
name = "test"
|
||||||
|
record_type = "TXT"
|
||||||
|
target = "this is a test record"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue