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:
parent
d901616d26
commit
794dbed8cb
3 changed files with 9 additions and 7 deletions
6
apps.tf
6
apps.tf
|
|
@ -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") }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
6
main.tf
6
main.tf
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue