-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb4ca5d
commit b8bfc1f
Showing
4 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
#!/bin/bash | ||
|
||
RELEASE_NAME="rough-rhino" | ||
# Usage: ./deploy.sh <release_name> <aztec_docker_image> | ||
# Example: ./deploy.sh rough-rhino aztecprotocol/aztec:698cd3d62680629a3f1bfc0f82604534cedbccf3-x86_64 | ||
|
||
set -eu | ||
|
||
RELEASE_NAME=$1 | ||
AZTEC_DOCKER_IMAGE=$2 | ||
|
||
terraform init -backend-config="key=deploy-network/${RELEASE_NAME}/terraform.tfstate" | ||
terraform apply -var-file="release.tfvars" | ||
terraform apply -var-file="release.tfvars" -var="RELEASE_NAME=${RELEASE_NAME}" -var="AZTEC_DOCKER_IMAGE=${AZTEC_DOCKER_IMAGE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
release_name = "rough-rhino" | ||
values_file = "release.yaml" | ||
aztec_docker_image = "aztecprotocol/aztec:698cd3d62680629a3f1bfc0f82604534cedbccf3-x86_64" | ||
|
||
VALUES_FILE = "release.yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
variable "gke_cluster_context" { | ||
variable "GKE_CLUSTER_CONTEXT" { | ||
description = "GKE cluster context" | ||
type = string | ||
default = "gke_testnet-440309_us-east4-a_spartan-gke" | ||
} | ||
|
||
variable "release_name" { | ||
variable "RELEASE_NAME" { | ||
description = "Name of helm deployment and k8s namespace" | ||
type = string | ||
} | ||
|
||
variable "values_file" { | ||
variable "VALUES_FILE" { | ||
description = "Name of the values file to use for deployment" | ||
type = string | ||
} | ||
|
||
variable "aztec_docker_image" { | ||
variable "AZTEC_DOCKER_IMAGE" { | ||
description = "Docker image to use for the aztec network" | ||
type = string | ||
} |