Skip to content

Commit 151c697

Browse files
authored
Standardize release docs. (#40)
Fixes #36.
1 parent dc44416 commit 151c697

2 files changed

Lines changed: 35 additions & 22 deletions

File tree

CONTRIBUTING.adoc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
= Contributing to Oxide OpenTelemetry Collector Components
2+
3+
== Development
4+
5+
=== Running Tests
6+
7+
[source,bash]
8+
----
9+
make test
10+
----
11+
12+
== Releasing
13+
14+
To create a new release:
15+
16+
1. Bump the versions in `collector/manifest.yaml` and push to `main`:
17+
* `dist.version`: the collector distribution version
18+
* The receiver go.mod version (`github.com/oxidecomputer/opentelemetry-collector-components`)
19+
2. Tag the commit and push the tag. The tag must point to a commit on `main`, or the release workflow will fail.
20+
+
21+
[source,bash]
22+
----
23+
git tag vX.Y.Z
24+
git push origin vX.Y.Z
25+
----
26+
27+
This triggers the link:.github/workflows/release.yml[release workflow], which:
28+
29+
* Builds collector binaries for linux/amd64, linux/arm64, darwin/amd64, and darwin/arm64
30+
* Creates a GitHub release with the binaries and checksums
31+
* Publishes a multi-arch Docker image to `ghcr.io/oxidecomputer/opentelemetry-collector-components`
32+
33+
To request a release, open an issue using the link:.github/ISSUE_TEMPLATE/release.yaml[release issue template].

README.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -142,26 +142,6 @@ Each log entry contains the full audit log JSON. The values are `[timestamp, bod
142142

143143
</details>
144144

145-
## Development
145+
## Contributing
146146

147-
### Running Tests
148-
149-
```bash
150-
make test
151-
```
152-
153-
## Releasing
154-
155-
To create a new release:
156-
157-
1. Bump the versions in `collector/manifest.yaml` and push to `main`:
158-
- `dist.version`: the collector distribution version
159-
- The receiver go.mod version (`github.com/oxidecomputer/opentelemetry-collector-components`)
160-
1. Tag the commit and push the tag. The tag must point to a commit on `main`, or the release workflow will fail.
161-
162-
```bash
163-
git tag v0.2.0
164-
git push origin v0.2.0
165-
```
166-
167-
This creates a new GitHub release, and publishes updated collector binaries and the Docker image.
147+
See link:CONTRIBUTING.adoc[CONTRIBUTING.adoc] for development and release instructions.

0 commit comments

Comments
 (0)