Skip to content

chore(dogfood): update docker tf provider and metadata #9356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: update metadata to show current region
  • Loading branch information
matifali committed Aug 26, 2023
commit 5ead27baf463862c375a47df8f4bcaf8e0b8ae5e
11 changes: 8 additions & 3 deletions dogfood/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ data "coder_parameter" "dotfiles_url" {
}

data "coder_parameter" "region" {
type = "string"
name = "Region"
icon = "/emojis/1f30e.png"
type = "string"
name = "Region"
icon = "/emojis/1f30e.png"
default = "us-pittsburgh"
option {
icon = "/emojis/1f1fa-1f1f8.png"
name = "Pittsburgh"
Expand Down Expand Up @@ -326,4 +327,8 @@ resource "coder_metadata" "container_info" {
key = "runtime"
value = docker_container.workspace[0].runtime
}
item {
key = "region"
value = data.coder_parameter.region.option[index(data.coder_parameter.region.option.*.value, data.coder_parameter.region.value)].name
}
}