-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release v0.5.0; ensure "latest" Docker tag is pushed; use versioned D…
…ocker tag in the Chart (#96) - Bump the version to v0.5.0 for a release. - Change the chart values to use the matching "docker.elastic.co/observability/apm-attacher:v$VERSION" tagged Docker image instead of using the "latest". - Add a lint step to ensure those versions are in sync. - Drop the "publish" CI workflow that would tag/push a new Docker image for every commit to main. These aren't used or needed. - Bump the version of some "actions/..." in CI workflows. - Also added a RELEASING.md to document the release process. Fixes: #42 Fixes: #95 Co-authored-by: jackshirazi <[email protected]>
- Loading branch information
1 parent
35df17d
commit 8092842
Showing
13 changed files
with
119 additions
and
99 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
workflow_run: | ||
workflows: | ||
- ci | ||
- publish | ||
- release | ||
types: [completed] | ||
|
||
jobs: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# How to release apm-k8s-attacher | ||
|
||
0. Make sure everything is working by testing "main". (TODO: Clarify a manual testing procedure if one is required beyond automated tests.) | ||
1. Create a PR for the release (named "release N.M.P" or whatever): | ||
- Update the `version:` at "./charts/apm-attacher/Chart.yaml", e.g. "1.2.3". | ||
- Update the `image.tag:` at "./charts/apm-attacher/values.yaml", e.g. "v1.2.3". | ||
Note that this file includes a "v" prefix in the version. | ||
Get the PR approved and merged. | ||
2. Working in a clone of the actual repo (not a fork), lightweight tag the repo: | ||
``` | ||
git tag vN.M.P | ||
git push origin vN.M.P | ||
``` | ||
3. Sanity check that the release worked: | ||
- The release CI should trigger on the pushed tag. Check https://github.com/elastic/apm-k8s-attacher/actions/workflows/release.yml | ||
- https://github.com/elastic/apm-k8s-attacher/releases should show the new release. | ||
- The Elastic Docker registry should show the new `docker.elastic.co/observability/apm-attacher:vN.M.P` version | ||
and the "latest" tag should pull the same digest | ||
``` | ||
docker pull docker.elastic.co/observability/apm-attacher:vN.M.P | ||
docker pull docker.elastic.co/observability/apm-attacher:latest # same digest? | ||
``` | ||
- The Elastic Helm repository should show the new release, though it may take a while (an hour?) to show up: | ||
``` | ||
helm repo add elastic https://helm.elastic.co | ||
helm repo update elastic | ||
helm search repo -l elastic/apm-attacher | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apiVersion: v2 | ||
name: apm-attacher | ||
type: application | ||
version: "0.4.0" | ||
version: "0.5.0" | ||
description: A Helm chart installing the Elastic APM Kubernetes Attacher. | ||
sources: | ||
- https://github.com/elastic/apm-k8s-attacher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2022 Elasticsearch BV | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Doing a release involves updating the version in two places. This script | ||
# ensures those versions match. | ||
|
||
if [ "$TRACE" != "" ]; then | ||
export PS4='${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' | ||
set -o xtrace | ||
fi | ||
set -o errexit | ||
set -o pipefail | ||
|
||
TOP=$(unset CDPATH; cd $(dirname $0)/../; pwd) | ||
|
||
function fatal { | ||
echo "$(basename $0): error: $*" | ||
exit 1 | ||
} | ||
|
||
CHART_PATH=charts/apm-attacher/Chart.yaml | ||
CHART_VER=$(grep "^version:" "$TOP/$CHART_PATH" | cut -d'"' -f2) | ||
VALUES_PATH=charts/apm-attacher/values.yaml | ||
VALUES_VER=$(grep "tag:" "$TOP/$VALUES_PATH" | cut -d'"' -f2) | ||
|
||
if [[ "${VALUES_VER:0:1}" != "v" ]]; then | ||
fatal "tag value in $VALUES_PATH, '$VALUES_VER', does not start with a 'v'" | ||
fi | ||
if [[ "v$CHART_VER" != "$VALUES_VER" ]]; then | ||
fatal "version in $CHART_PATH, '$CHART_VER', does not match tag in $VALUES_PATH, '$VALUES_VER'" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters