add script to automatically bump version and format

pull/128/head
Muhammad Atif Ali 1 year ago
parent c53d5d74e2
commit 0a4dc3150d

@ -13,8 +13,8 @@ tags: [helper]
```hcl
module "MODULE_NAME" {
source = "registry.coder.com/modules/MODULE_NAME/coder"
version = "1.0.1"
source = "registry.coder.com/modules/MODULE_NAME/coder"
version = "1.0.2"
}
```
@ -28,9 +28,9 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
```hcl
module "MODULE_NAME" {
source = "registry.coder.com/modules/MODULE_NAME/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/MODULE_NAME/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
extensions = [
"dracula-theme.theme-dracula"
]
@ -45,11 +45,11 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
```hcl
module "MODULE_NAME" {
source = "registry.coder.com/modules/MODULE_NAME/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/MODULE_NAME/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
extensions = [ "dracula-theme.theme-dracula" ]
settings = {
settings = {
"workbench.colorTheme" = "Dracula"
}
}
@ -61,9 +61,9 @@ Run code-server in the background, don't fetch it from GitHub:
```hcl
module "MODULE_NAME" {
source = "registry.coder.com/modules/MODULE_NAME/coder"
version = "1.0.1"
source = "registry.coder.com/modules/MODULE_NAME/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
offline = true
offline = true
}
```

@ -16,8 +16,8 @@ e.g.
```hcl
module "code-server" {
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.1"
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.2"
agent_id = coder_agent.main.id
}
```

@ -16,8 +16,8 @@ Customize the preselected parameter value:
```hcl
module "aws-region" {
source = "registry.coder.com/modules/aws-region/coder"
version = "1.0.1"
source = "registry.coder.com/modules/aws-region/coder"
version = "1.0.2"
default = "us-east-1"
}
@ -36,12 +36,14 @@ Change the display name and icon for a region using the corresponding maps:
```hcl
module "aws-region" {
source = "registry.coder.com/modules/aws-region/coder"
version = "1.0.1"
source = "registry.coder.com/modules/aws-region/coder"
version = "1.0.2"
default = "ap-south-1"
custom_names = {
"ap-south-1": "Awesome Mumbai!"
}
custom_icons = {
"ap-south-1": "/emojis/1f33a.png"
}
@ -60,8 +62,8 @@ Hide the Asia Pacific regions Seoul and Osaka:
```hcl
module "aws-region" {
source = "registry.coder.com/modules/aws-region/coder"
version = "1.0.1"
source = "registry.coder.com/modules/aws-region/coder"
version = "1.0.2"
exclude = [ "ap-northeast-2", "ap-northeast-3" ]
}

@ -13,8 +13,8 @@ This module adds a parameter with all Azure regions, allowing developers to sele
```hcl
module "azure_region" {
source = "registry.coder.com/modules/azure-region/coder"
version = "1.0.1"
source = "registry.coder.com/modules/azure-region/coder"
version = "1.0.2"
default = "eastus"
}
@ -33,8 +33,9 @@ Change the display name and icon for a region using the corresponding maps:
```hcl
module "azure-region" {
source = "registry.coder.com/modules/azure-region/coder"
version = "1.0.1"
source = "registry.coder.com/modules/azure-region/coder"
version = "1.0.2"
custom_names = {
"australia": "Go Australia!"
}
@ -56,8 +57,8 @@ Hide all regions in Australia except australiacentral:
```hcl
module "azure-region" {
source = "registry.coder.com/modules/azure-region/coder"
version = "1.0.1"
source = "registry.coder.com/modules/azure-region/coder"
version = "1.0.2"
exclude = [
"australia",
"australiacentral2",

Binary file not shown.

@ -13,8 +13,8 @@ Automatically install [code-server](https://github.com/coder/code-server) in a w
```hcl
module "code-server" {
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.1"
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
}
```
@ -27,9 +27,9 @@ module "code-server" {
```hcl
module "code-server" {
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
install_version = "4.8.3"
}
```
@ -40,9 +40,9 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
```hcl
module "code-server" {
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
extensions = [
"dracula-theme.theme-dracula"
]
@ -57,10 +57,11 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
```hcl
module "settings" {
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
extensions = [ "dracula-theme.theme-dracula" ]
settings = {
"workbench.colorTheme" = "Dracula"
}
@ -73,9 +74,9 @@ Just run code-server in the background, don't fetch it from GitHub:
```hcl
module "settings" {
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
extensions = [ "dracula-theme.theme-dracula", "ms-azuretools.vscode-docker" ]
}
```
@ -86,9 +87,9 @@ Just run code-server in the background, don't fetch it from GitHub:
```hcl
module "settings" {
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.1"
source = "registry.coder.com/modules/code-server/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
offline = true
offline = true
}
```

@ -13,8 +13,8 @@ Automatically logs the user into Coder when creating their workspace.
```hcl
module "coder-login" {
source = "registry.coder.com/modules/coder-login/coder"
version = "1.0.1"
source = "registry.coder.com/modules/coder-login/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
}
```

@ -13,8 +13,8 @@ Allow developers to optionally bring their own [dotfiles repository](https://dot
```hcl
module "dotfiles" {
source = "registry.coder.com/modules/dotfiles/coder"
version = "1.0.1"
source = "registry.coder.com/modules/dotfiles/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
}
```

@ -16,8 +16,8 @@ Customize the preselected parameter value:
```hcl
module "exoscale-instance-type" {
source = "registry.coder.com/modules/exoscale-instance-type/coder"
version = "1.0.1"
source = "registry.coder.com/modules/exoscale-instance-type/coder"
version = "1.0.2"
default = "standard.medium"
}
@ -28,7 +28,7 @@ resource "exoscale_compute_instance" "instance" {
resource "coder_metadata" "workspace_info" {
item {
key = "instance type"
key = "instance type"
value = module.exoscale-instance-type.name
}
}
@ -44,12 +44,14 @@ Change the display name a type using the corresponding maps:
```hcl
module "exoscale-instance-type" {
source = "registry.coder.com/modules/exoscale-instance-type/coder"
version = "1.0.1"
source = "registry.coder.com/modules/exoscale-instance-type/coder"
version = "1.0.2"
default = "standard.medium"
custom_names = {
"standard.medium": "Mittlere Instanz" # German translation
}
custom_descriptions = {
"standard.medium": "4 GB Arbeitsspeicher, 2 Kerne, 10 - 400 GB Festplatte" # German translation
}
@ -62,7 +64,7 @@ resource "exoscale_compute_instance" "instance" {
resource "coder_metadata" "workspace_info" {
item {
key = "instance type"
key = "instance type"
value = module.exoscale-instance-type.name
}
}
@ -76,11 +78,11 @@ Show only gpu1 types
```hcl
module "exoscale-instance-type" {
source = "registry.coder.com/modules/exoscale-instance-type/coder"
version = "1.0.1"
default = "gpu.large"
source = "registry.coder.com/modules/exoscale-instance-type/coder"
version = "1.0.2"
default = "gpu.large"
type_category = ["gpu"]
exclude = [
exclude = [
"gpu2.small",
"gpu2.medium",
"gpu2.large",
@ -99,7 +101,7 @@ resource "exoscale_compute_instance" "instance" {
resource "coder_metadata" "workspace_info" {
item {
key = "instance type"
key = "instance type"
value = module.exoscale-instance-type.name
}
}

@ -16,8 +16,8 @@ Customize the preselected parameter value:
```hcl
module "exoscale-zone" {
source = "registry.coder.com/modules/exoscale-zone/coder"
version = "1.0.1"
source = "registry.coder.com/modules/exoscale-zone/coder"
version = "1.0.2"
default = "ch-dk-2"
}
@ -43,12 +43,14 @@ Change the display name and icon for a zone using the corresponding maps:
```hcl
module "exoscale-zone" {
source = "registry.coder.com/modules/exoscale-zone/coder"
version = "1.0.1"
source = "registry.coder.com/modules/exoscale-zone/coder"
version = "1.0.2"
default = "at-vie-1"
custom_names = {
"at-vie-1": "Home Vienna"
}
custom_icons = {
"at-vie-1": "/emojis/1f3e0.png"
}
@ -73,8 +75,8 @@ Hide the Switzerland zones Geneva and Zurich
```hcl
module "exoscale-zone" {
source = "registry.coder.com/modules/exoscale-zone/coder"
version = "1.0.1"
source = "registry.coder.com/modules/exoscale-zone/coder"
version = "1.0.2"
exclude = [ "ch-gva-2", "ch-dk-2" ]
}

@ -13,8 +13,8 @@ A file browser for your workspace.
```hcl
module "filebrowser" {
source = "registry.coder.com/modules/filebrowser/coder"
version = "1.0.1"
source = "registry.coder.com/modules/filebrowser/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
}
```
@ -27,10 +27,10 @@ module "filebrowser" {
```hcl
module "filebrowser" {
source = "registry.coder.com/modules/filebrowser/coder"
version = "1.0.1"
source = "registry.coder.com/modules/filebrowser/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
folder = "/home/coder/project"
folder = "/home/coder/project"
}
```
@ -38,9 +38,9 @@ module "filebrowser" {
```hcl
module "filebrowser" {
source = "registry.coder.com/modules/filebrowser/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/filebrowser/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
database_path = ".config/filebrowser.db"
}
```

@ -15,8 +15,8 @@ We can use the simplest format here, only adding a default selection as the `atl
```hcl
module "fly-region" {
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.1"
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.2"
default = "atl"
}
```
@ -31,8 +31,8 @@ The regions argument can be used to display only the desired regions in the Code
```hcl
module "fly-region" {
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.1"
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.2"
default = "ams"
regions = ["ams", "arn", "atl"]
}
@ -46,12 +46,14 @@ Set custom icons and names with their respective maps.
```hcl
module "fly-region" {
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.1"
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.2"
default = "ams"
custom_icons = {
"ams" = "/emojis/1f90e.png"
}
custom_names = {
"ams" = "We love the Netherlands!"
}

@ -13,8 +13,8 @@ This module adds Google Cloud Platform regions to your Coder template.
```hcl
module "gcp_region" {
source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.1"
source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.2"
regions = ["us", "europe"]
}
@ -33,10 +33,10 @@ Note: setting `gpu_only = true` and using a default region without GPU support,
```hcl
module "gcp_region" {
source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.1"
default = ["us-west1-a"]
regions = ["us-west1"]
source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.2"
default = ["us-west1-a"]
regions = ["us-west1"]
gpu_only = false
}
@ -49,9 +49,9 @@ resource "google_compute_instance" "example" {
```hcl
module "gcp_region" {
source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.1"
regions = ["europe-west"]
source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.2"
regions = ["europe-west"]
single_zone_per_region = false
}
@ -60,14 +60,14 @@ resource "google_compute_instance" "example" {
}
```
### Add a single zone from each region in US and Europe that laos has GPUs
### Add a single zone from each region in US and Europe that has GPUs
```hcl
module "gcp_region" {
source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.1"
regions = ["us", "europe"]
gpu_only = true
source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.2"
regions = ["us", "europe"]
gpu_only = true
single_zone_per_region = true
}

@ -13,10 +13,10 @@ This module allows you to automatically clone a repository by URL and skip if it
```hcl
module "git-clone" {
source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.1"
source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
url = "https://github.com/coder/coder"
url = "https://github.com/coder/coder"
}
```
@ -34,8 +34,8 @@ data "coder_git_auth" "github" {
```hcl
module "git-clone" {
source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.1"
source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
url = "https://github.com/coder/coder"
base_dir = "~/projects/coder"

@ -18,8 +18,8 @@ This module has a chance of conflicting with the user's dotfiles / the personali
```hcl
module "git-commit-signing" {
source = "registry.coder.com/modules/git-commit-signing/coder"
version = "1.0.1"
source = "registry.coder.com/modules/git-commit-signing/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
}
```

@ -13,8 +13,8 @@ Runs a script that updates git credentials in the workspace to match the user's
```hcl
module "git-config" {
source = "registry.coder.com/modules/git-config/coder"
version = "1.0.1"
source = "registry.coder.com/modules/git-config/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
}
```
@ -27,9 +27,9 @@ TODO: Add screenshot
```hcl
module "git-config" {
source = "registry.coder.com/modules/git-config/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/git-config/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
allow_email_change = true
}
```
@ -40,12 +40,10 @@ TODO: Add screenshot
```hcl
module "git-config" {
source = "registry.coder.com/modules/git-config/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/git-config/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
allow_username_change = false
allow_email_change = false
allow_email_change = false
}
```
TODO: Add screenshot

@ -13,12 +13,12 @@ This module adds a JetBrains Gateway Button to open any workspace with a single
```hcl
module "jetbrains_gateway" {
source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
folder = "/home/coder/example"
source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
folder = "/home/coder/example"
jetbrains_ides = ["GO", "WS", "IU", "PY", "PS", "CL", "RM"]
default = "PY"
default = "PY"
}
```
@ -30,12 +30,12 @@ module "jetbrains_gateway" {
```hcl
module "jetbrains_gateway" {
source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
folder = "/home/coder/example"
source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
folder = "/home/coder/example"
jetbrains_ides = ["GO", "WS"]
default = "GO"
default = "GO"
}
```

@ -16,11 +16,12 @@ Install the JF CLI and authenticate package managers with Artifactory using OAut
```hcl
module "jfrog" {
source = "registry.coder.com/modules/jfrog-oauth/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
jfrog_url = "https://example.jfrog.io"
source = "registry.coder.com/modules/jfrog-oauth/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
jfrog_url = "https://example.jfrog.io"
username_field = "username" # If you are using GitHub to login to both Coder and Artifactory, use username_field = "username"
package_managers = {
"npm": "npm",
"go": "go",
@ -42,11 +43,12 @@ Configure the Python pip package manager to fetch packages from Artifactory whil
```hcl
module "jfrog" {
source = "registry.coder.com/modules/jfrog-oauth/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
jfrog_url = "https://example.jfrog.io"
source = "registry.coder.com/modules/jfrog-oauth/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
jfrog_url = "https://example.jfrog.io"
username_field = "email"
package_managers = {
"pypi": "pypi"
}
@ -69,12 +71,13 @@ The [JFrog extension](https://open-vsx.org/extension/JFrog/jfrog-vscode-extensio
```hcl
module "jfrog" {
source = "registry.coder.com/modules/jfrog-oauth/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
jfrog_url = "https://example.jfrog.io"
username_field = "username" # If you are using GitHub to login to both Coder and Artifactory, use username_field = "username"
source = "registry.coder.com/modules/jfrog-oauth/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
jfrog_url = "https://example.jfrog.io"
username_field = "username" # If you are using GitHub to login to both Coder and Artifactory, use username_field = "username"
configure_code_server = true # Add JFrog extension configuration for code-server
package_managers = {
"npm": "npm",
"go": "go",
@ -91,7 +94,7 @@ JFrog Access token is also available as a terraform output. You can use it in ot
provider "docker" {
...
registry_auth {
address = "https://example.jfrog.io/artifactory/api/docker/REPO-KEY"
address = "https://example.jfrog.io/artifactory/api/docker/REPO-KEY"
username = module.jfrog.username
password = module.jfrog.access_token
}

@ -15,7 +15,7 @@ Install the JF CLI and authenticate package managers with Artifactory using Arti
```hcl
module "jfrog" {
source = "registry.coder.com/modules/jfrog-token/coder"
version = "1.0.1"
version = "1.0.2"
agent_id = coder_agent.example.id
jfrog_url = "https://XXXX.jfrog.io"
artifactory_access_token = var.artifactory_access_token
@ -40,11 +40,12 @@ For detailed instructions, please see this [guide](https://coder.com/docs/v2/lat
```hcl
module "jfrog" {
source = "registry.coder.com/modules/jfrog-token/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
jfrog_url = "https://YYYY.jfrog.io"
artifactory_access_token = var.artifactory_access_token # An admin access token
source = "registry.coder.com/modules/jfrog-token/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
jfrog_url = "https://example.jfrog.io"
artifactory_access_token = var.artifactory_access_token
package_managers = {
"npm": "npm-local",
"go": "go-local",
@ -73,12 +74,13 @@ The [JFrog extension](https://open-vsx.org/extension/JFrog/jfrog-vscode-extensio
```hcl
module "jfrog" {
source = "registry.coder.com/modules/jfrog-token/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
jfrog_url = "https://XXXX.jfrog.io"
source = "registry.coder.com/modules/jfrog-token/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
jfrog_url = "https://example.jfrog.io"
artifactory_access_token = var.artifactory_access_token
configure_code_server = true # Add JFrog extension configuration for code-server
configure_code_server = true # Add JFrog extension configuration for code-server
package_managers = {
"npm": "npm",
"go": "go",
@ -96,9 +98,11 @@ JFrog Access token is also available as a terraform output. You can use it in ot
provider "docker" {
...
registry_auth {
address = "https://YYYY.jfrog.io/artifactory/api/docker/REPO-KEY"
address = "https://YYYY.jfrog.io/artifactory/api/docker/REPO-KEY"
username = module.jfrog.username
password = module.jfrog.access_token
}
}
```
> Here `REPO_KEY` is the name of docker repository in Artifactory.

@ -15,8 +15,8 @@ A module that adds Jupyter Notebook in your Coder template.
```hcl
module "jupyter-notebook" {
source = "registry.coder.com/modules/jupyter-notebook/coder"
version = "1.0.1"
source = "registry.coder.com/modules/jupyter-notebook/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
}
```

@ -15,8 +15,8 @@ A module that adds JupyterLab in your Coder template.
```hcl
module "jupyterlab" {
source = "registry.coder.com/modules/jupyterlab/coder"
version = "1.0.1"
source = "registry.coder.com/modules/jupyterlab/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
}
```

@ -5,7 +5,7 @@
"fmt": "bun x prettier --plugin prettier-plugin-sh -w **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt **/*.tf .sample/main.tf",
"fmt:ci": "bun x prettier --plugin prettier-plugin-sh --check **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt -check **/*.tf .sample/main.tf",
"lint": "bun run lint.ts",
"update-version": "LATEST_TAG=$(git describe --abbrev=0 --tags | sed 's/^v//') && find . -name 'README.md' -exec sed -i \"s/\\( version \\s*=\\s*\\\"\\)[0-9]*\\.[0-9]*\\.[0-9]*\\(\\\"\\)/\\1$LATEST_TAG\\2/g\" {} \\;"
"update-version": "sh update-version.sh"
},
"devDependencies": {
"bun-types": "^1.0.18",

@ -13,8 +13,8 @@ Run a script on workspace start that allows developers to run custom commands to
```hcl
module "personalize" {
source = "registry.coder.com/modules/personalize/coder"
version = "1.0.1"
source = "registry.coder.com/modules/personalize/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
}
```

@ -56,9 +56,9 @@ slackme npm run long-build
```hcl
module "slackme" {
source = "registry.coder.com/modules/slackme/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/slackme/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
auth_provider_id = "slack"
}
```
@ -72,11 +72,11 @@ slackme npm run long-build
```hcl
module "slackme" {
source = "registry.coder.com/modules/slackme/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/slackme/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
auth_provider_id = "slack"
slack_message = <<EOF
slack_message = <<EOF
👋 Hey there from Coder! $COMMAND took $DURATION to execute!
EOF
}

@ -0,0 +1,18 @@
#/usr/bin/env bash
# This script updates the version number in the README.md files of all modules
# to the latest tag in the repository. It is intended to be run from the root
# of the repository or by using the `bun update-version` command.
LATEST_TAG=$(git describe --abbrev=0 --tags | sed 's/^v//') || exit $?
find . -name README.md | while read -r file; do
awk -v tag="$LATEST_TAG" '{
if ($1 == "version" && $2 == "=") {
sub(/"[^"]*"/, "\"" tag "\"")
print
} else {
print
}
}' "$file" > tmpfile && mv tmpfile "$file"
done

@ -13,9 +13,9 @@ This module lets you authenticate with [Hashicorp Vault](https://www.vaultprojec
```hcl
module "vault" {
source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
vault_addr = "https://vault.example.com"
}
```
@ -23,7 +23,7 @@ module "vault" {
Then you can use the Vault CLI in your workspaces to fetch secrets from Vault:
```shell
vault kv get -mount = secret my-secret
vault kv get -mount=secret my-secret
```
or using the Vault API:
@ -44,10 +44,10 @@ To configure the Vault module, you must set up a Vault GitHub auth method. See t
```hcl
module "vault" {
source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
vault_addr = "https://vault.example.com"
source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
vault_addr = "https://vault.example.com"
coder_github_auth_id = "my-github-auth-id"
}
```
@ -56,11 +56,11 @@ module "vault" {
```hcl
module "vault" {
source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
vault_addr = "https://vault.example.com"
coder_github_auth_id = "my-github-auth-id"
source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
vault_addr = "https://vault.example.com"
coder_github_auth_id = "my-github-auth-id"
vault_github_auth_path = "my-github-auth-path"
}
```
@ -69,10 +69,10 @@ module "vault" {
```hcl
module "vault" {
source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
vault_addr = "https://vault.example.com"
source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
vault_addr = "https://vault.example.com"
vault_cli_version = "1.15.0"
}
```

@ -15,8 +15,8 @@ Uses the [Coder Remote VS Code Extension](https://github.com/coder/vscode-coder)
```hcl
module "vscode" {
source = "registry.coder.com/modules/vscode-desktop/coder"
version = "1.0.1"
source = "registry.coder.com/modules/vscode-desktop/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
}
```
@ -27,9 +27,9 @@ module "vscode" {
```hcl
module "vscode" {
source = "registry.coder.com/modules/vscode-desktop/coder"
version = "1.0.1"
source = "registry.coder.com/modules/vscode-desktop/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
folder = "/home/coder/project"
folder = "/home/coder/project"
}
```

@ -13,9 +13,9 @@ Automatically install [Visual Studio Code Server](https://code.visualstudio.com/
```hcl
module "vscode-web" {
source = "registry.coder.com/modules/vscode-web/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
source = "registry.coder.com/modules/vscode-web/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
accept_license = true
}
```
@ -28,11 +28,11 @@ module "vscode-web" {
```hcl
module "vscode-web" {
source = "registry.coder.com/modules/vscode-web/coder"
version = "1.0.1"
agent_id = coder_agent.example.id
install_dir = "/home/coder/.vscode-web"
folder = "/home/coder"
source = "registry.coder.com/modules/vscode-web/coder"
version = "1.0.2"
agent_id = coder_agent.example.id
install_dir = "/home/coder/.vscode-web"
folder = "/home/coder"
accept_license = true
}
```

Loading…
Cancel
Save