Skip to content

Commit

Permalink
Merge pull request #60 from sapcc/goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Oct 11, 2023
2 parents ef01c25 + 6c2adc7 commit 0bbd83c
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 14 deletions.
28 changes: 14 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
# v2.4.0 (TBD)
## v2.4.0 - TBD

Changes:

# v2.3.0 (2023-06-14)
## v2.3.0 - 2023-06-14

Changes:

- The container image moved from Docker Hub to ghcr.io and can now be found under ``ghcr.io/sapcc/ntp_exporter:vX.X.X``
- Add automaxprocs
- The container image moved from Docker Hub to ghcr.io and can now be found under `ghcr.io/sapcc/ntp_exporter:vX.X.X`.
- Add automaxprocs.
- Update all dependencies to their current versions.

# v2.2.0 (2023-04-04)
## v2.2.0 - 2023-04-04

Changes:

- Add `ntp_build_info` metric.
- Golang was updated to version 1.20.
- Update all dependencies to their current versions.

# v2.1.0 (2022-06-17)
## v2.1.0 - 2022-06-17

Changes:

- New metrics were added: `ntp_rtt_seconds`, `ntp_reference_timestamp_seconds`, `ntp_root_delay_seconds`, `ntp_root_dispersion_seconds`, `ntp_root_distance_seconds`, `ntp_precision_seconds`, `ntp_leap`
- The `ntp_stratum` metric now has the label `server`, and is reported separately for each server.
- Go got updated to version 1.18.

# v2.0.2 (2022-05-04)
## v2.0.2 - 2022-05-04

Changes:

- Update all dependencies to their current versions.

# v2.0.1 (2021-09-24)
## v2.0.1 - 2021-09-24

Changes:

- Update all dependencies to their current versions.

# v2.0.0 (2020-08-04)
## v2.0.0 - 2020-08-04

**Backwards-incompatible changes:**

Expand All @@ -50,25 +50,25 @@ Changes:

- Update all dependencies to their current versions.

# v1.1.3 (2020-05-28)
## v1.1.3 - 2020-05-28

Changes:

- Update all dependencies to their current versions.

# v1.1.2 (2020-04-08)
## v1.1.2 - 2020-04-08

Changes:

- Update all dependencies to their current versions.

# v1.1.1 (2020-02-10)
## v1.1.1 - 2020-02-10

Changes:

- Update all dependencies to their current versions.

# v1.1.0 (2019-11-19)
## v1.1.0 - 2019-11-19

New features:

Expand All @@ -87,6 +87,6 @@ Changes:

[alloc]: https://github.com/prometheus/prometheus/wiki/Default-port-allocations#exporters-starting-at-9100

# v1.0.0 (2017-01-13)
## v1.0.0 - 2017-01-13

Initial release.
5 changes: 5 additions & 0 deletions Makefile.maker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ golang:
golangciLint:
createConfig: true

goReleaser:
createConfig: true

spellCheck:
ignoreWords: ["strat"]

Expand All @@ -33,6 +36,8 @@ githubWorkflow:
enabled: true
pushContainerToGhcr:
enabled: true
release:
enabled: true
securityChecks:
enabled: true
spellCheck:
Expand Down
45 changes: 45 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Release Guide

We use [GoReleaser][goreleaser] and GitHub workflows for automating the release
process. Follow the instructions below for creating a new release.

1. Ensure local `master` branch is up to date with `origin/master`:

```sh
git fetch --tags && git pull --tags
```

2. Ensure all checks are passing:

```sh
make check
```

3. Update the [`CHANGELOG`](./CHANGELOG.md).
Make sure that the format is consistent especially the version heading.
We follow [semantic versioning][semver] for our releases.

You can check if the file format is correct by running [`release-info`][release-info] for the new version:

```sh
go install github.com/sapcc/go-bits/tools/release-info@latest
release-info CHANGELOG.md X.Y.Z
```

where `X.Y.Z` is the version that you are planning to release.

4. Commit the updated changelog with message: `Release <version>`
5. Create and push a new Git tag:

```sh
git tag vX.Y.Z
git push --tags
```

> [!IMPORTANT]
> Tags are prefixed with `v` and the GitHub release workflow is triggered for tags that match the `v[0-9]+.[0-9]+.[0-9]+` [gh-pattern].

[release-info]: https://github.com/sapcc/go-bits/tree/master/tools/release-info
[semver]: https://semver.org/spec/v2.0.0.html
[gh-pattern]: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#patterns-to-match-branches-and-tags
[goreleaser]: https://github.com/goreleaser/goreleaser

0 comments on commit 0bbd83c

Please sign in to comment.