Skip to content

Commit 2a555a9

Browse files
committed
migrate to coder-labs
1 parent 0746f51 commit 2a555a9

File tree

6 files changed

+15
-4
lines changed

6 files changed

+15
-4
lines changed

registry/coder/modules/archive/README.md renamed to registry/coder-labs/modules/archive/README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ tags: [backup, archive, tar, helper]
1010

1111
This module installs small, robust scripts in your workspace to create and extract tar archives from a list of files and directories. It supports optional compression (gzip or zstd). The create command prints only the resulting archive path to stdout; operational logs go to stderr. An optional stop hook can also create an archive automatically when the workspace stops, and an optional start hook can wait for an archive on-disk and extract it on start.
1212

13+
```tf
14+
module "archive" {
15+
count = data.coder_workspace.me.start_count
16+
source = "registry.coder.com/coder-labs/archive/coder"
17+
version = "0.0.1"
18+
agent_id = coder_agent.example.id
19+
20+
paths = ["./projects", "./code"]
21+
}
22+
```
23+
1324
## Features
1425

1526
- Installs two commands into the workspace `$PATH`: `coder-archive-create` and `coder-archive-extract`.
@@ -28,7 +39,7 @@ Basic example:
2839
```tf
2940
module "archive" {
3041
count = data.coder_workspace.me.start_count
31-
source = "registry.coder.com/coder/archive/coder"
42+
source = "registry.coder.com/coder-labs/archive/coder"
3243
version = "0.0.1"
3344
agent_id = coder_agent.example.id
3445
@@ -46,7 +57,7 @@ Customize compression and output:
4657
```tf
4758
module "archive" {
4859
count = data.coder_workspace.me.start_count
49-
source = "registry.coder.com/coder/archive/coder"
60+
source = "registry.coder.com/coder-labs/archive/coder"
5061
version = "0.0.1"
5162
agent_id = coder_agent.example.id
5263
@@ -63,7 +74,7 @@ Enable auto-archive on stop:
6374
```tf
6475
module "archive" {
6576
count = data.coder_workspace.me.start_count
66-
source = "registry.coder.com/coder/archive/coder"
77+
source = "registry.coder.com/coder-labs/archive/coder"
6778
version = "0.0.1"
6879
agent_id = coder_agent.example.id
6980
@@ -77,7 +88,7 @@ Extract on start:
7788
```tf
7889
module "archive" {
7990
count = data.coder_workspace.me.start_count
80-
source = "registry.coder.com/coder/archive/coder"
91+
source = "registry.coder.com/coder-labs/archive/coder"
8192
version = "0.0.1"
8293
agent_id = coder_agent.example.id
8394
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)