Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
auto update dnsimple and release all
  • Loading branch information
paulanthonywilson committed Jun 12, 2020
1 parent 3540cc2 commit 7b43ec8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/deploy-release
Expand Up @@ -2,6 +2,8 @@

set -e

cd `dirname $0`/..

APP_NAME=correcthorse_main

instance_ip=`cat deploy/instance_ip | tr -d '\n'`
Expand Down
10 changes: 10 additions & 0 deletions bin/do-all
@@ -0,0 +1,10 @@

#!/usr/bin/env bash

set -e

cd `dirname $0`

# ./make-release
# ./infra-build
./deploy-release
25 changes: 25 additions & 0 deletions deploy/terraform/dnsimple.tf
@@ -0,0 +1,25 @@
// Update beta.correcthorsebatterystaple.com CNAME


variable "dnsimple_token" {

}

variable "dnsimple_account" {

}

provider "dnsimple" {
token = var.dnsimple_token
account = var.dnsimple_account
}

// update record
resource "dnsimple_record" "beta_chs" {
domain = "correcthorsebatterystaple.com"
name = "beta"
type = "CNAME"
ttl = "60"
priority = "0"
value = aws_lb.lb.dns_name
}
2 changes: 1 addition & 1 deletion deploy/terraform/main.tf
Expand Up @@ -36,7 +36,7 @@ resource "aws_subnet" "other" {
availability_zone = "eu-west-1b"
}

# A security group for the ELB so it is accessible via the web
# A security group for the LB so it is accessible via the web
resource "aws_security_group" "load_balancer" {
name = "load-balancer"
description = "For the load-balancer"
Expand Down

0 comments on commit 7b43ec8

Please sign in to comment.