1
0
Fork 0
mirror of https://github.com/imjasonh/chessh synced 2026-07-07 00:33:53 +00:00
chessh/iac/chessh.tf
Jason Hall c79040c509 deploy directly to GCE
Signed-off-by: Jason Hall <jason@chainguard.dev>
2025-09-23 16:42:49 -04:00

21 lines
623 B
HCL

# Container image build configuration
data "apko_config" "config" {
config_contents = jsonencode({
contents = {
repositories = ["https://apk.cgr.dev/chainguard"]
packages = ["ca-certificates-bundle", "grype"]
}
archs = ["x86_64"]
})
}
resource "apko_build" "base" {
repo = "${var.region}-docker.pkg.dev/${var.project_id}/chessh/github.com/imjasonh/chessh"
config = data.apko_config.config.config
}
resource "ko_build" "chessh" {
importpath = "github.com/imjasonh/chessh"
base_image = apko_build.base.image_ref
depends_on = [google_artifact_registry_repository.artifact_repo]
}