vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Publish release and run artifacts as file trees
5f2a0b0a7f84ec1bb43af5213e5c788039b72222 · Keenan Nemetz · 20d ago · parent 6d574bec
Publish release and run artifacts as file trees Release pointers and run outputs are now slash-separated paths. A flat name is a one-segment path, so every existing release, pointer, URL, and workflow that uses dist/* keeps working. - metadata validates artifact paths, lists and loads them recursively, and refuses a tag that would make the tag/path boundary ambiguous - vole release attach keeps a directory's relative paths; a plain file keeps its base name - a workflow match is published relative to the declaration's static root, so dist/* stays flat while dist/*/* keeps one directory level - release and run download routes accept nested paths; Content-Disposition still saves the base name - one internal rule is shared by the pointer writer, metadata validator, run record, CLI, and routes so they cannot disagree Refs: 01M7BPH6RRPK2934FCHVJPQNGY
docs/releases.md +21−5
| @@ -31,21 +31,37 @@ only before files are attached. | |||
| 31 | 31 | ||
| 32 | 32 | ## Attach files | |
| 33 | 33 | ||
| 34 | Push the tag first, then attach build outputs: | ||
| 34 | Push the tag first, then attach build outputs. A file is attached under its base | ||
| 35 | name; a directory is attached as a tree relative to the directory you name: | ||
| 35 | 36 | ||
| 36 | 37 | ```sh | |
| 37 | 38 | vole release attach v1.0.0 dist/vole-linux-amd64 dist/vole-linux-arm64 | |
| 38 | 39 | ``` | |
| 39 | 40 | ||
| 41 | To publish a package layout, attach the directory that should become the | ||
| 42 | release root: | ||
| 43 | |||
| 44 | ```sh | ||
| 45 | vole release attach v1.0.0 dist | ||
| 46 | # publishes apt/Packages, apt/Packages.gz, yum/repodata/repomd.xml, ... | ||
| 47 | |||
| 48 | vole release attach v1.0.0 dist/apt | ||
| 49 | # publishes Packages, Packages.gz, and the .deb files at the root | ||
| 50 | ``` | ||
| 51 | |||
| 52 | A path is slash-separated. Empty segments, `.`, `..`, backslashes, and control | ||
| 53 | characters are refused, and a path cannot be both a file and a directory. | ||
| 54 | |||
| 40 | 55 | Vole uploads the bytes into shared storage and writes pointers to the `vole` | |
| 41 | 56 | branch. It refuses a pointer without an uploaded object, so a published download | |
| 42 | 57 | cannot point at a missing file. Attaching identical content again reuses the | |
| 43 | 58 | stored object. | |
| 44 | 59 | ||
| 45 | Download and verify a file: | ||
| 60 | Download and verify a file, including one in a nested path: | ||
| 46 | 61 | ||
| 47 | 62 | ```sh | |
| 48 | 63 | curl -O https://forge.example.com/demo/releases/v1.0.0/artifacts/vole-linux-amd64 | |
| 64 | curl -O https://forge.example.com/demo/releases/v1.0.0/artifacts/apt/Packages | ||
| 49 | 65 | sha256sum vole-linux-amd64 | |
| 50 | 66 | ``` | |
| 51 | 67 | ||
| @@ -81,9 +97,9 @@ The workflow writes the same attachment pointers as `vole release attach`. See | |||
| 81 | 97 | ||
| 82 | 98 | ## Immutability | |
| 83 | 99 | ||
| 84 | After a file is attached, Vole refuses to move or delete the tag, remove a file, | ||
| 85 | or reuse a file name for different bytes. You can add another file without | ||
| 86 | changing existing downloads. An admin repair is recorded in `data/audit.log`. | ||
| 100 | After a file is attached, Vole refuses to move or delete the tag, remove a path, | ||
| 101 | or reuse a path for different bytes. You can add another path without changing | ||
| 102 | existing downloads. An admin repair is recorded in `data/audit.log`. | ||
| 87 | 103 | ||
| 88 | 104 | Release pointers participate in storage reachability, so `vole admin gc` retains | |
| 89 | 105 | their objects. Treat a release as permanent before publishing it. | |