Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c59f3ec

Browse files
authored
add .coder.yaml file (#138)
1 parent ee842ec commit c59f3ec

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.coder.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# .coder.yaml
2+
# This is a Coder configuration file. It tells Coder how to create a workspace
3+
# for this repository. You can use variables like {{org}}, {{repo}}, and {{ref}}
4+
# to dynamically generate values.
5+
#
6+
# This configuration works well with Coder's git-clone module. To use it, you
7+
# can add the following to your template:
8+
#
9+
# data "coder_parameter" "git_url" {
10+
# type = "string"
11+
# name = "Git URL"
12+
# description = "The git repository URL to be cloned."
13+
# default = "<your-git-repo-url>"
14+
# mutable = true
15+
# }
16+
#
17+
# module "git-clone" {
18+
# source = "registry.coder.com/modules/git-clone/coder"
19+
# version = "1.0.12"
20+
# agent_id = <your-agent-id>
21+
# url = data.coder_parameter.git_url.value
22+
# }
23+
24+
# Replace with your Coder deployment URL
25+
host: dev.coder.com
26+
27+
# Specify the Coder template for this repository
28+
template: dogfood
29+
30+
# Define a name for the new workspace using variables such as {{org}}, {{repo}},
31+
# and {{ref}} to dynamically generate values. This name is crucial as it is used
32+
# to identify and potentially reuse an existing workspace within Coder.
33+
name: {{repo}}-{{ref}}
34+
35+
# Uncomment and use 'parameters' to override template defaults
36+
# parameters:
37+
# - name: "Git URL"
38+
# value: "https://github.com/{{org}}/{{repo}}/tree/{{ref}}"

0 commit comments

Comments
 (0)