diff --git a/install.sh b/install.sh index 3c0b7b2781e36..465d10ad47581 100755 --- a/install.sh +++ b/install.sh @@ -654,4 +654,28 @@ prefix() { "$@" >"$fifo" 2>&1 } +CODER_ACCESS_URL=https://Coder.Michael.com +CODER_PROMETHEUS_ADDRESS=0.0.0.0:2112 +CODER_PROMETHEUS_ENABLE +CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS=true +CODER_GITAUTH_0_ID="primary-github" +data "coder_git_auth" "github" { + # Matches the ID of the git auth provider in Coder. + id = "github" +} + +resource "coder_agent" "dev" { + os = "linux" + arch = "amd64" + dir = "~/coder" + env = { + GITHUB_TOKEN : data.coder_git_auth.github.access_token + } + startup_script = <