Skip to content
Merged
Changes from all commits
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
18 changes: 17 additions & 1 deletion dogfood/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ terraform {
}
}

# User parameters

variable "dotfiles_uri" {
type = string
description = <<-EOF
default = ""
Dotfiles repo URI (optional)

see https://dotfiles.github.io
EOF
default = ""
}

variable "datocms_api_token" {
type = string
description = "An API token from DATOCMS for usage with building our website."
Expand Down Expand Up @@ -39,7 +52,10 @@ resource "coder_agent" "dev" {
curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 4.8.3
code-server --auth none --port 13337 &
sudo service docker start
coder dotfiles -y 2>&1 | tee ~/.personalize.log
DOTFILES_URI=${var.dotfiles_uri}
if [ -n "$DOTFILES_URI" ]; then
coder dotfiles var.dotfiles_uri -y 2>&1 | tee ~/.personalize.log
fi
EOF
}

Expand Down