Skip to content

Commit 4deb52f

Browse files
committed
chore: Add DatoCMS token to dogfood template
This is used for developing coder.com!
1 parent 8469dbc commit 4deb52f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

dogfood/main.tf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ terraform {
1111
}
1212
}
1313

14+
variable "datocms_api_token" {
15+
type = string
16+
description = "An API token for provisioning API tokens for workspaces"
17+
}
18+
1419
# Admin parameters
1520

1621
provider "docker" {
@@ -118,7 +123,10 @@ resource "docker_container" "workspace" {
118123
# CPU limits are unnecessary since Docker will load balance automatically
119124
memory = 32768
120125
runtime = "sysbox-runc"
121-
env = ["CODER_AGENT_TOKEN=${coder_agent.dev.token}"]
126+
env = [
127+
"CODER_AGENT_TOKEN=${coder_agent.dev.token}",
128+
"DATOCMS_API_TOKEN=${var.datocms_api_token}",
129+
]
122130
host {
123131
host = "host.docker.internal"
124132
ip = "host-gateway"

0 commit comments

Comments
 (0)