> Index of every page on this site: [llms.txt](https://docs.a-line.cloud/llms.txt)

# Helm charts and OCI artifacts

> Push Helm charts, WASM modules and other files to the registry with helm and oras, and see them by kind in the console.

**Goal**: a Helm chart or an ORAS artifact in the A-Line.cloud registry, shown
for what it is in **Registry**.

The registry stores any OCI artifact, not only container images. Repositories
are named like images: `<org>/<environment>/<project>/<name>`. Sign in with
your organization handle as the user and a registry token as the password,
passed on stdin so it stays out of your shell history:

```sh
echo "$ALINE_REGISTRY_TOKEN" | helm registry login registry.a-line.cloud -u <org> --password-stdin
echo "$ALINE_REGISTRY_TOKEN" | oras login registry.a-line.cloud -u <org> --password-stdin
```

## Helm charts

<Steps>
<Step>

Package the chart:

```sh
helm package ./web
```

</Step>
<Step>

Push it to a repository path; Helm adds the chart name and uses the chart
version as the tag:

```sh
helm push web-1.2.3.tgz oci://registry.a-line.cloud/<org>/<environment>/charts
```

</Step>
<Step>

Open **Registry** and the tag. Its details show the chart name, version, app
version and description from `Chart.yaml`, with copyable commands:

```sh
helm pull oci://registry.a-line.cloud/<org>/<environment>/charts/web --version 1.2.3
helm install web oci://registry.a-line.cloud/<org>/<environment>/charts/web --version 1.2.3
```

</Step>
</Steps>

## ORAS artifacts and WASM modules

[ORAS](https://oras.land) pushes any files. Give them an artifact type so the
console can show it:

```sh
oras push registry.a-line.cloud/<org>/<environment>/tools/report:v1 \
  --artifact-type application/vnd.example.report.v1 \
  report.txt:text/plain
```

The tag's details list each file (its name, size and media type) and the
`oras pull` command. A WebAssembly module is pushed the same way with a WASM
media type, and is shown as **WASM** with its size and a `wasmtime run` hint:

```sh
oras push registry.a-line.cloud/<org>/<environment>/tools/hello:v1 \
  --artifact-type application/vnd.wasm.config.v0+json \
  hello.wasm:application/wasm
```

## Kinds in the console

Each tag is badged by what it holds: image, multi-platform image, Helm chart,
WASM, signature, SBOM, attestation or artifact. A repository is badged with
the kind most of its tags are; signatures and SBOMs stored next to images
don't change that. Types the console doesn't know show as **Artifact** with
the raw type. Names, descriptions and file names come from the artifact and
are shown as plain text.
