Skip to content

Commit 7b43ec8

Browse files
auto update dnsimple and release all
1 parent 3540cc2 commit 7b43ec8

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed

bin/deploy-release

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
cd `dirname $0`/..
6+
57
APP_NAME=correcthorse_main
68

79
instance_ip=`cat deploy/instance_ip | tr -d '\n'`

bin/do-all

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
#!/usr/bin/env bash
3+
4+
set -e
5+
6+
cd `dirname $0`
7+
8+
# ./make-release
9+
# ./infra-build
10+
./deploy-release

deploy/terraform/dnsimple.tf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Update beta.correcthorsebatterystaple.com CNAME
2+
3+
4+
variable "dnsimple_token" {
5+
6+
}
7+
8+
variable "dnsimple_account" {
9+
10+
}
11+
12+
provider "dnsimple" {
13+
token = var.dnsimple_token
14+
account = var.dnsimple_account
15+
}
16+
17+
// update record
18+
resource "dnsimple_record" "beta_chs" {
19+
domain = "correcthorsebatterystaple.com"
20+
name = "beta"
21+
type = "CNAME"
22+
ttl = "60"
23+
priority = "0"
24+
value = aws_lb.lb.dns_name
25+
}

deploy/terraform/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ resource "aws_subnet" "other" {
3636
availability_zone = "eu-west-1b"
3737
}
3838

39-
# A security group for the ELB so it is accessible via the web
39+
# A security group for the LB so it is accessible via the web
4040
resource "aws_security_group" "load_balancer" {
4141
name = "load-balancer"
4242
description = "For the load-balancer"

0 commit comments

Comments
 (0)