Skip to content

Commit

Permalink
Merge pull request #17 from sr33hari/staging
Browse files Browse the repository at this point in the history
useless1
  • Loading branch information
sr33hari authored Jul 11, 2024
2 parents 42bd856 + 05caf2c commit c3a35e9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ provider "google-beta" {
region = var.region
}

terraform {
required_providers {
time = {
source = "hashicorp/time"
}
}
required_version = ">= 1.8.0"
}

locals {
plan_time = provider::time::rfc3339_parse(plantimestamp())
}

data "external" "get_artifact_registry_repo" {
program = ["bash", "gcp.sh"]
query = {
Expand All @@ -34,10 +47,6 @@ resource "google_artifact_registry_repository" "my_repo" {
count = data.external.get_artifact_registry_repo.result.name == "" ? 1 : 0
}

locals {
plan_time = provider::time::rfc3339_parse(plantimestamp())
}

resource "null_resource" "build_and_push_image" {
provisioner "local-exec" {
command = <<EOT
Expand Down

0 comments on commit c3a35e9

Please sign in to comment.