Skip to content

Commit

Permalink
Create a docker artifact registry (#77)
Browse files Browse the repository at this point in the history
Now we have somewhere to store our container images!

Closes #54
  • Loading branch information
markmandel authored Feb 24, 2023
1 parent 839f6a3 commit b4f2814
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
20 changes: 20 additions & 0 deletions infrastructure/artifact-registry.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

resource "google_artifact_registry_repository" "container_registry" {
repository_id = "global-game-images"
location = var.artifact_registry_config.location
description = "Repository for container images for the global game"
format = "Docker"
}
5 changes: 5 additions & 0 deletions infrastructure/terraform.tfvars.sample
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ services_gke_config = {
}
}

# Artifact Registry variables
artifact_registry_config = {
location = "us-central1"
}

# Agones Application Service Account Name
app_service_account_config = {
name = "app-service-account"
Expand Down
8 changes: 8 additions & 0 deletions infrastructure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ variable "clouddeploy_config" {
})
}

### Artifact Registry Variables ###

variable "artifact_registry_config" {
type = object({
location = string
})
}

### Spanner Variables ###

variable "spanner_config" {
Expand Down

0 comments on commit b4f2814

Please sign in to comment.