1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-08 00:55:14 +00:00

use glue dashboards, fix tests

Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
Jason Hall 2023-12-19 20:02:31 -05:00
parent d901616d26
commit 794dbed8cb
Failed to extract signature
3 changed files with 9 additions and 7 deletions

View file

@ -126,8 +126,12 @@ resource "google_dns_record_set" "dns-record" {
} }
resource "null_resource" "test" { resource "null_resource" "test" {
for_each = local.apps for_each = tomap(local.apps)
depends_on = [google_dns_record_set.dns-record] depends_on = [google_dns_record_set.dns-record]
# Changes to any service requires re-testing it.
triggers = { service = google_cloud_run_service.service[each.key].id }
provisioner "local-exec" { command = file("${path.module}/cmd/${each.key}/test.sh") } provisioner "local-exec" { command = file("${path.module}/cmd/${each.key}/test.sh") }
} }

View file

@ -2,5 +2,5 @@
set -eux set -eux
time crane validate --remote=flatten.kontain.me/busybox time crane validate --remote=flatten.kontain.me/cgr.dev/chainguard/busybox:latest-glibc
time crane validate --remote=flatten.kontain.me/busybox time crane validate --remote=flatten.kontain.me/cgr.dev/chainguard/busybox:latest-glibc

View file

@ -31,10 +31,8 @@ variable "domain" {
} }
module "dashboard" { module "dashboard" {
for_each = tomap(tomap(local.apps)) for_each = tomap(local.apps)
source = "github.com/chainguard-dev/terraform-cloudrun-dashboard" source = "git::https://github.com/chainguard-dev/terraform-cloudrun-glue//dashboard/service?ref=main"
project_id = var.project_id
service_name = each.key service_name = each.key
} }