Skip to content

Commit

Permalink
Move to conformance naming
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Sep 6, 2024
1 parent b4813ae commit b252f27
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions deployment/modules/gcp/cloudbuild/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ terraform {
resource "google_artifact_registry_repository" "docker" {
repository_id = "docker-${var.env}"
location = var.region
description = "Tessera example docker images"
description = "Tessera testing docker images"
format = "DOCKER"
}

locals {
artifact_repo = "${var.region}-docker.pkg.dev/${var.project_id}/${google_artifact_registry_repository.docker.name}"
example_gcp_docker_image = "${local.artifact_repo}/example-gcp"
conformance_gcp_docker_image = "${local.artifact_repo}/conformance-gcp"
hammer_docker_image = "${local.artifact_repo}/hammer"
}

Expand Down Expand Up @@ -57,13 +57,13 @@ resource "google_cloudbuild_trigger" "docker" {
wait_for = ["-"]
}
step {
id = "docker_build_example"
id = "docker_build_conformance_gcp"
name = "gcr.io/cloud-builders/docker"
args = [
"build",
"-t", "${local.example_gcp_docker_image}:$SHORT_SHA",
"-t", "${local.example_gcp_docker_image}:latest",
"-f", "./cmd/example-gcp/Dockerfile",
"-t", "${local.conformance_gcp_docker_image}:$SHORT_SHA",
"-t", "${local.conformance_gcp_docker_image}:latest",
"-f", "./cmd/conformance/gcp/Dockerfile",
"."
]
wait_for = ["-"]
Expand All @@ -73,18 +73,18 @@ resource "google_cloudbuild_trigger" "docker" {
args = [
"push",
"--all-tags",
local.example_gcp_docker_image
local.conformance_gcp_docker_image
]
wait_for = ["docker_build_example"]
wait_for = ["docker_build_conformance_gcp"]
}
step {
id = "terraform_apply_ci"
id = "terraform_apply_conformance_ci"
name = "alpine/terragrunt"
entrypoint = "terragrunt"
args = [
"apply",
]
dir = "deployment/live/gcp/example-gcp/ci"
dir = "deployment/live/gcp/conformance/ci"
env = [
"TF_IN_AUTOMATION=1",
"TF_INPUT=false",
Expand Down
6 changes: 3 additions & 3 deletions deployment/modules/gcp/cloudbuild/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ output "cloudbuild_trigger_id" {
value = google_cloudbuild_trigger.docker.id
}

output "docker_image" {
description = "The address of the docker image that will be built"
value = local.example_gcp_docker_image
output "conformance_gcp_docker_image" {
description = "The address of the GCP conformance docker image that will be built"
value = local.conformance_gcp_docker_image
}

0 comments on commit b252f27

Please sign in to comment.