chore: Add DatoCMS token to dogfood template (#5254)

* chore: Add DatoCMS token to dogfood template

This is used for developing coder.com!
This commit is contained in:
Kyle Carberry
2022-12-07 15:59:32 -06:00
committed by GitHub
parent 1ac1af7db8
commit 3d95c9256d
+10 -1
View File
@@ -11,6 +11,12 @@ terraform {
}
}
variable "datocms_api_token" {
type = string
description = "An API token from DATOCMS for usage with building our website."
default = ""
}
# Admin parameters
provider "docker" {
@@ -118,7 +124,10 @@ resource "docker_container" "workspace" {
# CPU limits are unnecessary since Docker will load balance automatically
memory = 32768
runtime = "sysbox-runc"
env = ["CODER_AGENT_TOKEN=${coder_agent.dev.token}"]
env = [
"CODER_AGENT_TOKEN=${coder_agent.dev.token}",
"DATOCMS_API_TOKEN=${var.datocms_api_token}",
]
host {
host = "host.docker.internal"
ip = "host-gateway"