8000 feat: add dotfiles command by f0ssel · Pull Request #1723 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: add dotfiles command #1723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
May 25, 2022
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
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
Next Next commit
chore: propose coder dotfiles command
  • Loading branch information
f0ssel committed May 23, 2022
commit 7235e3aae8d98cdde577600d609f596c0da5be80
12 changes: 12 additions & 0 deletions examples/docker/main.tf
5C0B
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ variable "step2_arch" {
}
sensitive = true
}
variable "step3_dotfiles" {
description = <<-EOF
Dotfiles repository URL (example 'git@github.com:coder/dotfiles.git')
EOF

validation {
condition = var.step3_dotfiles != "" ? regex([".git$"], var.step3_dotfiles) : true
error_message = "Value must end in '.git' extension"
}
sensitive = false
}

provider "docker" {
host = "unix:///var/run/docker.sock"
Expand All @@ -56,6 +67,7 @@ data "coder_workspace" "me" {
resource "coder_agent" "dev" {
arch = var.step2_arch
os = "linux"
startup_script = var.step3_dotfiles != "" ? "coder dotfiles -y ${var.step3_dotfiles}": null
}

variable "docker_image" {
Expand Down
0