From acab6437bca3201d33604ddd1add550ca6d8c5b4 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 30 Jan 2024 17:51:31 +0300 Subject: [PATCH] chore: bump version to 1.0.2 and add script to update them automatically. (#128) Co-authored-by: Mathias Fredriksson --- .sample/README.md | 24 ++++++++++++------------ README.md | 2 +- aws-region/README.md | 8 +++++--- azure-region/README.md | 6 +++--- bun.lockb | Bin 7526 -> 9463 bytes code-server/README.md | 12 ++++++------ coder-login/README.md | 2 +- dotfiles/README.md | 2 +- exoscale-instance-type/README.md | 8 +++++--- exoscale-zone/README.md | 8 +++++--- filebrowser/README.md | 6 +++--- fly-region/README.md | 8 +++++--- gcp-region/README.md | 10 +++++----- git-clone/README.md | 25 +++++++++++++++++-------- git-commit-signing/README.md | 2 +- git-config/README.md | 8 +++----- jetbrains-gateway/README.md | 4 ++-- jfrog-oauth/README.md | 8 +++++--- jfrog-token/README.md | 8 +++++--- jupyter-notebook/README.md | 2 +- jupyterlab/README.md | 2 +- lint.ts | 5 +++++ package.json | 5 +++-- personalize/README.md | 2 +- slackme/README.md | 4 ++-- update-version.sh | 21 +++++++++++++++++++++ vault-github/README.md | 8 ++++---- vscode-desktop/README.md | 4 ++-- vscode-web/README.md | 4 ++-- 29 files changed, 127 insertions(+), 81 deletions(-) create mode 100755 update-version.sh diff --git a/.sample/README.md b/.sample/README.md index c842c67..e8754f1 100644 --- a/.sample/README.md +++ b/.sample/README.md @@ -13,8 +13,8 @@ tags: [helper] ```tf module "MODULE_NAME" { - source = "registry.coder.com/modules/MODULE_NAME/coder" - version = "1.0.0" + 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/): ```tf module "MODULE_NAME" { - source = "registry.coder.com/modules/MODULE_NAME/coder" - version = "1.0.0" - 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 ```tf module "MODULE_NAME" { - source = "registry.coder.com/modules/MODULE_NAME/coder" - version = "1.0.0" - 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: ```tf module "MODULE_NAME" { - source = "registry.coder.com/modules/MODULE_NAME/coder" - version = "1.0.0" + source = "registry.coder.com/modules/MODULE_NAME/coder" + version = "1.0.2" agent_id = coder_agent.example.id - offline = true + offline = true } ``` diff --git a/README.md b/README.md index 9cf14e8..4b67594 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ e.g. ```tf module "code-server" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.main.id } ``` diff --git a/aws-region/README.md b/aws-region/README.md index 01a32fa..bcea6d7 100644 --- a/aws-region/README.md +++ b/aws-region/README.md @@ -17,7 +17,7 @@ Customize the preselected parameter value: ```tf module "aws-region" { source = "registry.coder.com/modules/aws-region/coder" - version = "1.0.0" + version = "1.0.2" default = "us-east-1" } @@ -37,11 +37,13 @@ Change the display name and icon for a region using the corresponding maps: ```tf module "aws-region" { source = "registry.coder.com/modules/aws-region/coder" - version = "1.0.0" + version = "1.0.2" default = "ap-south-1" + custom_names = { "ap-south-1" : "Awesome Mumbai!" } + custom_icons = { "ap-south-1" : "/emojis/1f33a.png" } @@ -61,7 +63,7 @@ Hide the Asia Pacific regions Seoul and Osaka: ```tf module "aws-region" { source = "registry.coder.com/modules/aws-region/coder" - version = "1.0.0" + version = "1.0.2" exclude = ["ap-northeast-2", "ap-northeast-3"] } diff --git a/azure-region/README.md b/azure-region/README.md index 1f20cee..d88a2e9 100644 --- a/azure-region/README.md +++ b/azure-region/README.md @@ -14,7 +14,7 @@ This module adds a parameter with all Azure regions, allowing developers to sele ```tf module "azure_region" { source = "registry.coder.com/modules/azure-region/coder" - version = "1.0.0" + version = "1.0.2" default = "eastus" } @@ -34,7 +34,7 @@ Change the display name and icon for a region using the corresponding maps: ```tf module "azure-region" { source = "registry.coder.com/modules/azure-region/coder" - version = "1.0.0" + version = "1.0.2" custom_names = { "australia" : "Go Australia!" } @@ -57,7 +57,7 @@ Hide all regions in Australia except australiacentral: ```tf module "azure-region" { source = "registry.coder.com/modules/azure-region/coder" - version = "1.0.0" + version = "1.0.2" exclude = [ "australia", "australiacentral2", diff --git a/bun.lockb b/bun.lockb index f8f49403f8df43ea5f007841780199346be3a142..d7e77b2aa30552796d6059a6ed6b0506257575ca 100755 GIT binary patch delta 2622 zcmbtWdsNf+75{yI377-|2!SL#1}LRkO+r#a6f~&oN-=7QR z)ZsyIeH>nhd^2{%<>ODs-@VdMm!@(5v%NDe{G#ZmIqE--`7Mu9zd8iVZ*#T%4 zWd__u(KFB@%8>pHGfTrofv{R+;#Z2GN^EBB&@9g6W5w`qv03WFbZLbcR*OySJ*W)G zl-|d=DLBVSYqSv)&LEC5MN-3I_9TTkx*jFdQG&q5;@}@iF5y%vN+dW-QrRO(Kp@9W zMu`GvaT~c&k0fT42-c!WPmu5%0wFyx-HURL1_d$-2j)gQ?FcpS(TZ(hGSZd>Q=m;TtDY;vj>&wE?il%<~szE6t^Wc}~H z{zlxrxeXcH>i2q+`>pHpVWCU~aWV^&f>UM#RgfIcBNqhfARC-TZdH(l$>9^^UJaIm zCfLG4p)%M8_s)!4mf7qGQW0 zZZ2v2@^+T{ZyPsk(S@sbo9eIq^i<)7-kJQqmZCSN>^`)0pR|Wt+pcWg{M4oRr9GWDuFSu4v!k}*@2>aU z*9;FWxtqsILI<0_weFuhf3NK~iM5B@^4^k!uUYGzdUB;$_2uDvBkbaR#|t=2V%7a$ zn{wV?5WJ=P&Q3NMo6-dReSdb_6CHW8qIxc5t=hWrgS9bT?|`Gc;@R$|SvBA9YMQoZ zdfPZyA79pYb7J2J!%>1!L~(M?uQIOh^~{j{*17`r#pn7Ixl5k@`bAtvdV7RnCHz%h0jHP(azcXn1P1vb zb9gxq2Se8LA!0}m&4r60IY;Y5-xon&Xur%i{FED2V2zle9eg-M6duJ$k6U>B0)Kf} zB~=XvBa-1_gkmmLJ6c9dlsKpmVf*0ZII!pV3l~*IY$g6;Ll=RH5*08yJ1Rs}Ll)By z(pfS+#!IHCCXp&V52{TR5yePlg(?G;BXUn}$Ss*9H{_mp3IW@n-yON3Fv%r_AcXv{ zVYj=eo+HVo9JDK{Q-uaAbU6vj*J}-0J;w>H_G*60+#?g3>lExX>Ql#r znUT@Fl0jjlFGgs+A0Mi(|6*;AgeUzJEt=g4EK1FrL=YQgV6E_c)NIxZyQ9=zq2UU> zlV|jhh=i6bbl3k%gr+U@S#)F68q&0>-2b=sL!D~Uk)zU$;oVpghgU-ZpGQqhP#I&BGD)ZC?y;h&5O@Y(un4<$q2V?r91?qUw69yy6r+F$}jxt?I zsogRBSy5JAVt2mm)Q|-9F|lJt@MY+KB&)&wo1`@WT2wsJ$2ApYnn_xtRu7BS3DF~b apom;)3@KW@UTY$~A2Xk(HNtDLo&N!|iZ8` zz%LqtY*`urrqE=#0hV&9TlNHgbIHW-b_8hwM$xm=$A7^NURn zwZFiQAy0VA$o0HUbvnjm1nA6!kx~=>abRlp==;5gAj02-RUY9*Fen1z9R?SKUtDG& zOMY&IpcLR`Fen8~39PamCz|1k@QDcyvd+&{2lorolpEA zK-T+BB@$zmR2r^GKG82h63G=L=}R4`dLQ?K$q+C#Vz0Z9<1|}MA=*iZT1K-27u%p* z7{#&5(MIOw5Q*Mv*4qQZ@Uxh2+NhJy&DGDgo5LaNI zH41yJ3Y14^sw~ZHKQg; z8((F{ow?w5~(pmJH2XAZuWj!F`yvXmBY39aN@CjF^<;cM3eu0|`$F-vZ;FFs}pdb;)c!rbbJwhZElN zl2}*Avz=WrcB#@odAs_l^Jj50X!GZipWm5@)Sj3}tldiS{^oT}!D|Z=xHtISi?|5v uHSucc_DlSrHT_v8>t!!=Zm5Tme9w5##u&%D%eFc11F=aG#iigV_~~zbU>eT= diff --git a/code-server/README.md b/code-server/README.md index 52c031b..42c04d6 100644 --- a/code-server/README.md +++ b/code-server/README.md @@ -14,7 +14,7 @@ Automatically install [code-server](https://github.com/coder/code-server) in a w ```tf module "code-server" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id } ``` @@ -28,7 +28,7 @@ module "code-server" { ```tf module "code-server" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id install_version = "4.8.3" } @@ -41,7 +41,7 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/): ```tf module "code-server" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id extensions = [ "dracula-theme.theme-dracula" @@ -58,7 +58,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte ```tf module "settings" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id extensions = ["dracula-theme.theme-dracula"] settings = { @@ -74,7 +74,7 @@ Just run code-server in the background, don't fetch it from GitHub: ```tf module "settings" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id extensions = ["dracula-theme.theme-dracula", "ms-azuretools.vscode-docker"] } @@ -87,7 +87,7 @@ Just run code-server in the background, don't fetch it from GitHub: ```tf module "settings" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id offline = true } diff --git a/coder-login/README.md b/coder-login/README.md index d12a41d..d68e088 100644 --- a/coder-login/README.md +++ b/coder-login/README.md @@ -14,7 +14,7 @@ Automatically logs the user into Coder when creating their workspace. ```tf module "coder-login" { source = "registry.coder.com/modules/coder-login/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id } ``` diff --git a/dotfiles/README.md b/dotfiles/README.md index 9ffac02..eb64563 100644 --- a/dotfiles/README.md +++ b/dotfiles/README.md @@ -14,7 +14,7 @@ Allow developers to optionally bring their own [dotfiles repository](https://dot ```tf module "dotfiles" { source = "registry.coder.com/modules/dotfiles/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id } ``` diff --git a/exoscale-instance-type/README.md b/exoscale-instance-type/README.md index 28bf2e5..4b493f9 100644 --- a/exoscale-instance-type/README.md +++ b/exoscale-instance-type/README.md @@ -17,7 +17,7 @@ Customize the preselected parameter value: ```tf module "exoscale-instance-type" { source = "registry.coder.com/modules/exoscale-instance-type/coder" - version = "1.0.0" + version = "1.0.2" default = "standard.medium" } @@ -45,11 +45,13 @@ Change the display name a type using the corresponding maps: ```tf module "exoscale-instance-type" { source = "registry.coder.com/modules/exoscale-instance-type/coder" - version = "1.0.0" + 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 } @@ -77,7 +79,7 @@ Show only gpu1 types ```tf module "exoscale-instance-type" { source = "registry.coder.com/modules/exoscale-instance-type/coder" - version = "1.0.0" + version = "1.0.2" default = "gpu.large" type_category = ["gpu"] exclude = [ diff --git a/exoscale-zone/README.md b/exoscale-zone/README.md index b56a858..4297bed 100644 --- a/exoscale-zone/README.md +++ b/exoscale-zone/README.md @@ -17,7 +17,7 @@ Customize the preselected parameter value: ```tf module "exoscale-zone" { source = "registry.coder.com/modules/exoscale-zone/coder" - version = "1.0.0" + version = "1.0.2" default = "ch-dk-2" } @@ -44,11 +44,13 @@ Change the display name and icon for a zone using the corresponding maps: ```tf module "exoscale-zone" { source = "registry.coder.com/modules/exoscale-zone/coder" - version = "1.0.0" + version = "1.0.2" default = "at-vie-1" + custom_names = { "at-vie-1" : "Home Vienna" } + custom_icons = { "at-vie-1" : "/emojis/1f3e0.png" } @@ -74,7 +76,7 @@ Hide the Switzerland zones Geneva and Zurich ```tf module "exoscale-zone" { source = "registry.coder.com/modules/exoscale-zone/coder" - version = "1.0.0" + version = "1.0.2" exclude = ["ch-gva-2", "ch-dk-2"] } diff --git a/filebrowser/README.md b/filebrowser/README.md index 6dcefb5..e783588 100644 --- a/filebrowser/README.md +++ b/filebrowser/README.md @@ -14,7 +14,7 @@ A file browser for your workspace. ```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id } ``` @@ -28,7 +28,7 @@ module "filebrowser" { ```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id folder = "/home/coder/project" } @@ -39,7 +39,7 @@ module "filebrowser" { ```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id database_path = ".config/filebrowser.db" } diff --git a/fly-region/README.md b/fly-region/README.md index 5fec1a3..e5f446e 100644 --- a/fly-region/README.md +++ b/fly-region/README.md @@ -16,7 +16,7 @@ We can use the simplest format here, only adding a default selection as the `atl ```tf module "fly-region" { source = "registry.coder.com/modules/fly-region/coder" - version = "1.0.0" + version = "1.0.2" default = "atl" } ``` @@ -32,7 +32,7 @@ The regions argument can be used to display only the desired regions in the Code ```tf module "fly-region" { source = "registry.coder.com/modules/fly-region/coder" - version = "1.0.0" + version = "1.0.2" default = "ams" regions = ["ams", "arn", "atl"] } @@ -47,11 +47,13 @@ Set custom icons and names with their respective maps. ```tf module "fly-region" { source = "registry.coder.com/modules/fly-region/coder" - version = "1.0.0" + version = "1.0.2" default = "ams" + custom_icons = { "ams" = "/emojis/1f90e.png" } + custom_names = { "ams" = "We love the Netherlands!" } diff --git a/gcp-region/README.md b/gcp-region/README.md index e860ed9..bb6063a 100644 --- a/gcp-region/README.md +++ b/gcp-region/README.md @@ -14,7 +14,7 @@ This module adds Google Cloud Platform regions to your Coder template. ```tf module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" - version = "1.0.0" + version = "1.0.2" regions = ["us", "europe"] } @@ -34,7 +34,7 @@ Note: setting `gpu_only = true` and using a default region without GPU support, ```tf module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" - version = "1.0.0" + version = "1.0.2" default = ["us-west1-a"] regions = ["us-west1"] gpu_only = false @@ -50,7 +50,7 @@ resource "google_compute_instance" "example" { ```tf module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" - version = "1.0.0" + version = "1.0.2" regions = ["europe-west"] single_zone_per_region = false } @@ -60,12 +60,12 @@ 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 ```tf module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" - version = "1.0.0" + version = "1.0.2" regions = ["us", "europe"] gpu_only = true single_zone_per_region = true diff --git a/git-clone/README.md b/git-clone/README.md index a0e8e46..054e30c 100644 --- a/git-clone/README.md +++ b/git-clone/README.md @@ -14,30 +14,39 @@ This module allows you to automatically clone a repository by URL and skip if it ```tf module "git-clone" { source = "registry.coder.com/modules/git-clone/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id url = "https://github.com/coder/coder" } ``` -To use with [Git Authentication](https://coder.com/docs/v2/latest/admin/git-providers), add the provider by ID to your template: +## Examples + +### Custom Path ```tf -data "coder_git_auth" "github" { - id = "github" +module "git-clone" { + 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" } ``` -## Examples +### Git Authentication -### Custom Path +To use with [Git Authentication](https://coder.com/docs/v2/latest/admin/git-providers), add the provider by ID to your template: ```tf module "git-clone" { source = "registry.coder.com/modules/git-clone/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id url = "https://github.com/coder/coder" - base_dir = "~/projects/coder" +} + +data "coder_git_auth" "github" { + id = "github" } ``` diff --git a/git-commit-signing/README.md b/git-commit-signing/README.md index 05759d1..b3e3b67 100644 --- a/git-commit-signing/README.md +++ b/git-commit-signing/README.md @@ -19,7 +19,7 @@ This module has a chance of conflicting with the user's dotfiles / the personali ```tf module "git-commit-signing" { source = "registry.coder.com/modules/git-commit-signing/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id } ``` diff --git a/git-config/README.md b/git-config/README.md index 71f09fa..3044c4e 100644 --- a/git-config/README.md +++ b/git-config/README.md @@ -14,7 +14,7 @@ Runs a script that updates git credentials in the workspace to match the user's ```tf module "git-config" { source = "registry.coder.com/modules/git-config/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id } ``` @@ -28,7 +28,7 @@ TODO: Add screenshot ```tf module "git-config" { source = "registry.coder.com/modules/git-config/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id allow_email_change = true } @@ -41,11 +41,9 @@ TODO: Add screenshot ```tf module "git-config" { source = "registry.coder.com/modules/git-config/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id allow_username_change = false allow_email_change = false } ``` - -TODO: Add screenshot diff --git a/jetbrains-gateway/README.md b/jetbrains-gateway/README.md index 6e8031a..2c8c91e 100644 --- a/jetbrains-gateway/README.md +++ b/jetbrains-gateway/README.md @@ -14,7 +14,7 @@ This module adds a JetBrains Gateway Button to open any workspace with a single ```tf module "jetbrains_gateway" { source = "registry.coder.com/modules/jetbrains-gateway/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id folder = "/home/coder/example" jetbrains_ides = ["GO", "WS", "IU", "PY", "PS", "CL", "RM"] @@ -31,7 +31,7 @@ module "jetbrains_gateway" { ```tf module "jetbrains_gateway" { source = "registry.coder.com/modules/jetbrains-gateway/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id folder = "/home/coder/example" jetbrains_ides = ["GO", "WS"] diff --git a/jfrog-oauth/README.md b/jfrog-oauth/README.md index 84dbbbd..2ec3b4b 100644 --- a/jfrog-oauth/README.md +++ b/jfrog-oauth/README.md @@ -17,10 +17,11 @@ Install the JF CLI and authenticate package managers with Artifactory using OAut ```tf module "jfrog" { source = "registry.coder.com/modules/jfrog-oauth/coder" - version = "1.0.0" + 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", @@ -43,10 +44,11 @@ Configure the Python pip package manager to fetch packages from Artifactory whil ```tf module "jfrog" { source = "registry.coder.com/modules/jfrog-oauth/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id jfrog_url = "https://example.jfrog.io" username_field = "email" + package_managers = { "pypi" : "pypi" } @@ -70,7 +72,7 @@ The [JFrog extension](https://open-vsx.org/extension/JFrog/jfrog-vscode-extensio ```tf module "jfrog" { source = "registry.coder.com/modules/jfrog-oauth/coder" - version = "1.0.0" + 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" diff --git a/jfrog-token/README.md b/jfrog-token/README.md index 032e313..8796d16 100644 --- a/jfrog-token/README.md +++ b/jfrog-token/README.md @@ -15,7 +15,7 @@ Install the JF CLI and authenticate package managers with Artifactory using Arti ```tf module "jfrog" { source = "registry.coder.com/modules/jfrog-token/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id jfrog_url = "https://XXXX.jfrog.io" artifactory_access_token = var.artifactory_access_token @@ -41,7 +41,7 @@ For detailed instructions, please see this [guide](https://coder.com/docs/v2/lat ```tf module "jfrog" { source = "registry.coder.com/modules/jfrog-token/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id jfrog_url = "https://YYYY.jfrog.io" artifactory_access_token = var.artifactory_access_token # An admin access token @@ -74,7 +74,7 @@ The [JFrog extension](https://open-vsx.org/extension/JFrog/jfrog-vscode-extensio ```tf module "jfrog" { source = "registry.coder.com/modules/jfrog-token/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id jfrog_url = "https://XXXX.jfrog.io" artifactory_access_token = var.artifactory_access_token @@ -102,3 +102,5 @@ provider "docker" { } } ``` + +> Here `REPO_KEY` is the name of docker repository in Artifactory. diff --git a/jupyter-notebook/README.md b/jupyter-notebook/README.md index e25722a..8afd715 100644 --- a/jupyter-notebook/README.md +++ b/jupyter-notebook/README.md @@ -16,7 +16,7 @@ A module that adds Jupyter Notebook in your Coder template. ```tf module "jupyter-notebook" { source = "registry.coder.com/modules/jupyter-notebook/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id } ``` diff --git a/jupyterlab/README.md b/jupyterlab/README.md index 4ab7782..a9899ee 100644 --- a/jupyterlab/README.md +++ b/jupyterlab/README.md @@ -16,7 +16,7 @@ A module that adds JupyterLab in your Coder template. ```tf module "jupyterlab" { source = "registry.coder.com/modules/jupyterlab/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id } ``` diff --git a/lint.ts b/lint.ts index 7b859a0..db1ee9a 100644 --- a/lint.ts +++ b/lint.ts @@ -92,6 +92,7 @@ for (const dir of dirs) { let h1 = false; let code = false; let paragraph = false; + let version = true; for (const token of tokens) { if (token.type === "heading" && token.depth === 1) { @@ -107,6 +108,10 @@ for (const dir of dirs) { } if (token.type === "code") { code = true; + if (token.lang === "tf" && !token.text.includes("version")) { + version = false; + error(dir.name, "missing version in tf code block"); + } continue; } } diff --git a/package.json b/package.json index 3ccd906..bab18d3 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "test": "bun test", "fmt": "bun x prettier -w **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt **/*.tf .sample/main.tf", "fmt:ci": "bun x prettier --check **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt -check **/*.tf .sample/main.tf", - "lint": "bun run lint.ts" + "lint": "bun run lint.ts", + "update-version": "./update-version.sh" }, "devDependencies": { "bun-types": "^1.0.18", @@ -22,4 +23,4 @@ "prettier-plugin-terraform-formatter" ] } -} +} \ No newline at end of file diff --git a/personalize/README.md b/personalize/README.md index c36467f..24d19a9 100644 --- a/personalize/README.md +++ b/personalize/README.md @@ -14,7 +14,7 @@ Run a script on workspace start that allows developers to run custom commands to ```tf module "personalize" { source = "registry.coder.com/modules/personalize/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id } ``` diff --git a/slackme/README.md b/slackme/README.md index a43033e..0858c3d 100644 --- a/slackme/README.md +++ b/slackme/README.md @@ -57,7 +57,7 @@ slackme npm run long-build ```tf module "slackme" { source = "registry.coder.com/modules/slackme/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id auth_provider_id = "slack" } @@ -73,7 +73,7 @@ slackme npm run long-build ```tf module "slackme" { source = "registry.coder.com/modules/slackme/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id auth_provider_id = "slack" slack_message = < "$tmpfile" && mv "$tmpfile" "$file" +done diff --git a/vault-github/README.md b/vault-github/README.md index b6bfb36..99bdb78 100644 --- a/vault-github/README.md +++ b/vault-github/README.md @@ -14,7 +14,7 @@ This module lets you authenticate with [Hashicorp Vault](https://www.vaultprojec ```tf module "vault" { source = "registry.coder.com/modules/vault-github/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id vault_addr = "https://vault.example.com" } @@ -45,7 +45,7 @@ To configure the Vault module, you must set up a Vault GitHub auth method. See t ```tf module "vault" { source = "registry.coder.com/modules/vault-github/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id vault_addr = "https://vault.example.com" coder_github_auth_id = "my-github-auth-id" @@ -57,7 +57,7 @@ module "vault" { ```tf module "vault" { source = "registry.coder.com/modules/vault-github/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id vault_addr = "https://vault.example.com" coder_github_auth_id = "my-github-auth-id" @@ -70,7 +70,7 @@ module "vault" { ```tf module "vault" { source = "registry.coder.com/modules/vault-github/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id vault_addr = "https://vault.example.com" vault_cli_version = "1.15.0" diff --git a/vscode-desktop/README.md b/vscode-desktop/README.md index 76ba165..6b33267 100644 --- a/vscode-desktop/README.md +++ b/vscode-desktop/README.md @@ -16,7 +16,7 @@ Uses the [Coder Remote VS Code Extension](https://github.com/coder/vscode-coder) ```tf module "vscode" { source = "registry.coder.com/modules/vscode-desktop/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id } ``` @@ -28,7 +28,7 @@ module "vscode" { ```tf module "vscode" { source = "registry.coder.com/modules/vscode-desktop/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id folder = "/home/coder/project" } diff --git a/vscode-web/README.md b/vscode-web/README.md index f90ba00..55b12ef 100644 --- a/vscode-web/README.md +++ b/vscode-web/README.md @@ -14,7 +14,7 @@ Automatically install [Visual Studio Code Server](https://code.visualstudio.com/ ```tf module "vscode-web" { source = "registry.coder.com/modules/vscode-web/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id accept_license = true } @@ -29,7 +29,7 @@ module "vscode-web" { ```tf module "vscode-web" { source = "registry.coder.com/modules/vscode-web/coder" - version = "1.0.0" + version = "1.0.2" agent_id = coder_agent.example.id install_dir = "/home/coder/.vscode-web" folder = "/home/coder"