Skip to content

add .coder.yaml file #138

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 1 commit into from
Jul 18, 2024
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
38 changes: 38 additions & 0 deletions .coder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# .coder.yaml
# This is a Coder configuration file. It tells Coder how to create a workspace
# for this repository. You can use variables like {{org}}, {{repo}}, and {{ref}}
# to dynamically generate values.
#
# This configuration works well with Coder's git-clone module. To use it, you
# can add the following to your template:
#
# data "coder_parameter" "git_url" {
# type = "string"
# name = "Git URL"
# description = "The git repository URL to be cloned."
# default = "<your-git-repo-url>"
# mutable = true
# }
#
# module "git-clone" {
# source = "registry.coder.com/modules/git-clone/coder"
# version = "1.0.12"
# agent_id = <your-agent-id>
# url = data.coder_parameter.git_url.value
# }

# Replace with your Coder deployment URL
host: dev.coder.com

# Specify the Coder template for this repository
template: dogfood

# Define a name for the new workspace using variables such as {{org}}, {{repo}},
# and {{ref}} to dynamically generate values. This name is crucial as it is used
# to identify and potentially reuse an existing workspace within Coder.
name: {{repo}}-{{ref}}

# Uncomment and use 'parameters' to override template defaults
# parameters:
# - name: "Git URL"
# value: "https://github.com/{{org}}/{{repo}}/tree/{{ref}}"