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" {
for_each = local.apps
for_each = tomap(local.apps)
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") }
}

View file

@ -2,5 +2,5 @@
set -eux
time crane validate --remote=flatten.kontain.me/busybox
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/cgr.dev/chainguard/busybox:latest-glibc

View file

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