Skip to content

Commit fd64374

Browse files
authored
Merge pull request spinframework#187 from vdice/docs/build-artifacts-and-toc
docs(README.md): add build artifact section; add TOC
2 parents 8c36933 + 2c1a48a commit fd64374

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ This project aims to provide the [containerd shim](https://github.com/containerd
44

55
[runwasi](https://github.com/deislabs/runwasi) is a project that aims to run WASI workloads managed by [containerd](https://containerd.io/).
66

7+
## Table of Contents
8+
9+
- [Shim and Spin Version Map](#shim-and-spin-version-map)
10+
- [Documentation](#documentation)
11+
- [Building and running the shim on host](#building-and-running-the-containerd-shim-spin-on-host)
12+
- [Installing the shim on Kubernetes Nodes](#installing-the-containerd-shim-spin-on-kubernetes-nodes)
13+
- [Locating build artifacts](#locating-build-artifacts)
14+
- [Feedback](#feedback)
15+
- [Contributing](#contributing)
16+
717
## Shim and Spin Version Map
818

919
Below is a table for referencing the version of the Spin runtime used in each `containerd-shim-spin` release.
@@ -98,6 +108,28 @@ To carry out the installation step-by-step, do the following:
98108
command: ["/"]
99109
```
100110

111+
## Locating build artifacts
112+
113+
### Versioned releases
114+
115+
A GitHub release is created for each versioned release with build artifacts attached, including shim binaries for all supported architectures. See the [Releases page](https://github.com/spinkube/containerd-shim-spin/releases) for the full listing.
116+
117+
In addition, container images for k3d, node-installer and example apps are published using the release version for their tags, eg [ghcr.io/spinkube/containerd-shim-spin:v0.15.1](https://github.com/spinkube/containerd-shim-spin/pkgs/container/containerd-shim-spin%2Fnode-installer/240852005?tag=v0.15.1). A listing of all images and their tags can be seen from the [packages page](https://github.com/orgs/spinkube/packages?repo_name=containerd-shim-spin).
118+
119+
### Canary builds
120+
121+
On every push to the `main` branch, the [release workflow](https://github.com/spinkube/containerd-shim-spin/actions/workflows/release.yaml) will run and attach shim binary artifacts once finished.
122+
123+
Container images for k3d, node-installer and example apps are also published, using a unique tag of the form `$(date +%Y%m%d-%H%M%S)-g$(git rev-parse --short HEAD)`. A listing of all images and their tags can be seen from the [packages page](https://github.com/orgs/spinkube/packages?repo_name=containerd-shim-spin).
124+
125+
### Branch builds
126+
127+
For every push to a feature branch with a corresponding PR, the [ci workflow](https://github.com/spinkube/containerd-shim-spin/actions/workflows/ci.yaml) will run and attach shim binary artifacts once finished.
128+
129+
If the feature branch is created from the origin repo, the [node-installer image](https://github.com/spinkube/containerd-shim-spin/pkgs/container/containerd-shim-spin%2Fnode-installer) will be published with a tag following the same convention as `main` builds. You can locate the tag corresponding to your branch via the commit string portion.
130+
131+
> Note: A node-installer image won't be pushed for feature branches on forks, as they don't have access to the credentials needed to publish to the ghcr.io container registry.
132+
101133
## Feedback
102134

103135
For questions or support, please visit our [Slack channel](https://cloud-native.slack.com/archives/C06PC7JA1EE): #spinkube.

0 commit comments

Comments
 (0)