We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ac1af7 commit 3d95c92Copy full SHA for 3d95c92
dogfood/main.tf
@@ -11,6 +11,12 @@ terraform {
11
}
12
13
14
+variable "datocms_api_token" {
15
+ type = string
16
+ description = "An API token from DATOCMS for usage with building our website."
17
+ default = ""
18
+}
19
+
20
# Admin parameters
21
22
provider "docker" {
@@ -118,7 +124,10 @@ resource "docker_container" "workspace" {
118
124
# CPU limits are unnecessary since Docker will load balance automatically
119
125
memory = 32768
120
126
runtime = "sysbox-runc"
121
- env = ["CODER_AGENT_TOKEN=${coder_agent.dev.token}"]
127
+ env = [
128
+ "CODER_AGENT_TOKEN=${coder_agent.dev.token}",
129
+ "DATOCMS_API_TOKEN=${var.datocms_api_token}",
130
+ ]
122
131
host {
123
132
host = "host.docker.internal"
133
ip = "host-gateway"
0 commit comments