-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version to 2.0.0-rc.1 and work more on the release action
Signed-off-by: Pete Wall <[email protected]>
- Loading branch information
Showing
34 changed files
with
70 additions
and
65 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,14 +3,12 @@ name: Release Helm chart | |
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_dispatch: | ||
pull_request: {} # Temporary while testing | ||
|
||
env: | ||
BIN_PATH: bin | ||
PACKAGE_PATH: package | ||
INDEX_PATH: index | ||
|
||
#env: | ||
# CR_CONFIGFILE: "${{ github.workspace }}/source/.github/configs/cr.yaml" | ||
# CR_INDEX_PATH: "${{ github.workspace }}/.cr-index" | ||
# CR_TOOL_PATH: "${{ github.workspace }}/.cr-tool" | ||
# CR_VERSION: "1.6.1" | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
@@ -32,6 +30,16 @@ jobs: | |
- name: Set up Helm | ||
uses: azure/setup-helm@v4 | ||
|
||
- name: Install CR tool | ||
run: | | ||
mkdir "${BIN_PATH}" | ||
mkdir "${PACKAGE_PATH}" | ||
mkdir "${INDEX_PATH}" | ||
crVersion=$(gh release list --repo helm/chart-releaser --exclude-pre-releases --json tagName --jq '.[0].tagName' | sed 's/v//') | ||
curl -sSLo cr.tar.gz "https://github.com/helm/chart-releaser/releases/download/v${crVersion}/chart-releaser_${crVersion}_linux_amd64.tar.gz" | ||
tar -xzf cr.tar.gz -C "${BIN_PATH}" | ||
rm -f cr.tar.gz | ||
- name: Configure Git | ||
run: | | ||
cd source | ||
|
@@ -42,15 +50,6 @@ jobs: | |
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
# - name: Install CR tool | ||
# run: | | ||
# mkdir "${CR_TOOL_PATH}" | ||
# mkdir "${CR_PACKAGE_PATH}" | ||
# mkdir "${CR_INDEX_PATH}" | ||
# curl -sSLo cr.tar.gz "https://github.com/helm/chart-releaser/releases/download/v${CR_VERSION}/chart-releaser_${CR_VERSION}_linux_amd64.tar.gz" | ||
# tar -xzf cr.tar.gz -C "${CR_TOOL_PATH}" | ||
# rm -f cr.tar.gz | ||
|
||
- name: Parse Chart.yaml | ||
id: parse-chart | ||
working-directory: source | ||
|
@@ -78,10 +77,9 @@ jobs: | |
helm repo add kepler https://sustainable-computing-io.github.io/kepler-helm-chart | ||
helm repo add opencost https://opencost.github.io/opencost-helm-chart | ||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
mkdir ../build | ||
helm package charts/k8s-monitoring --destination ../build | ||
helm package charts/k8s-monitoring --destination "../${PACKAGE_PATH}" | ||
- name: Make release on K8s Monitoring Helm | ||
- name: Create release on grafana/k8s-monitoring-helm | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: ${{ steps.parse-chart.outputs.tagVersion }} | ||
|
@@ -90,29 +88,36 @@ jobs: | |
prerelease: ${{ steps.parse-version.outputs.prerelease != '' }} | ||
token: ${{ secrets.GH_BOT_ACCESS_TOKEN }} | ||
generate_release_notes: true | ||
files: build/${{ steps.parse-chart.outputs.packagename }}.tgz | ||
files: ${{ env.PACKAGE_PATH }}/${{ steps.parse-chart.outputs.packagename }}.tgz | ||
fail_on_unmatched_files: true | ||
|
||
# # Note that this creates a release in grafana/helm-charts with a new tag. | ||
# # Note that this creates a release in grafana/helm-charts GitHub Repository with a new tag. | ||
Check failure on line 94 in .github/workflows/release.yml
|
||
# # The tag name in grafana/helm-charts is <package>-<version>, while the | ||
# # tag name for grafana/k8s-monitoring-helm is <version>. | ||
# - name: Make release on Helm Charts | ||
# uses: softprops/action-gh-release@v2 | ||
# with: | ||
# name: ${{ steps.parse-chart.outputs.packagename }} | ||
# repository: grafana/helm-charts | ||
# tag_name: ${{ steps.parse-chart.outputs.packagename }} | ||
# token: ${{ secrets.GH_BOT_ACCESS_TOKEN }} | ||
# body: | | ||
# ${{ steps.parse-chart.outputs.desc }} | ||
# | ||
# Source commit: https://github.com/${{ github.repository }}/commit/${{ github.sha }} | ||
# | ||
# Tag on source: https://github.com/${{ github.repository }}/releases/tag/${{ steps.parse-chart.outputs.tagname }} | ||
# files: | | ||
# ${{ env.CR_PACKAGE_PATH }}/${{ steps.parse-chart.outputs.packagename }}.tgz | ||
# | ||
# - name: Update helm-charts index.yaml | ||
# run: | | ||
# cd helm-charts | ||
# "${CR_TOOL_PATH}/cr" index --config "${CR_CONFIGFILE}" --token "${{ secrets.GH_BOT_ACCESS_TOKEN }}" --index-path "${CR_INDEX_PATH}" --package-path "${CR_PACKAGE_PATH}" --push | ||
- name: Create release on grafana/helm-charts | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: ${{ steps.parse-chart.outputs.packagename }} | ||
repository: grafana/helm-charts | ||
tag_name: ${{ steps.parse-chart.outputs.packagename }} | ||
prerelease: ${{ steps.parse-version.outputs.prerelease != '' }} | ||
token: ${{ secrets.GH_BOT_ACCESS_TOKEN }} | ||
body: | | ||
${{ steps.parse-chart.outputs.desc }} | ||
Source commit: https://github.com/${{ github.repository }}/commit/${{ github.sha }} | ||
Tag on source: https://github.com/${{ github.repository }}/releases/tag/${{ steps.parse-chart.outputs.tagname }} | ||
files: ${{ env.PACKAGE_PATH }}/${{ steps.parse-chart.outputs.packagename }}.tgz | ||
fail_on_unmatched_files: true | ||
|
||
|
||
Check failure on line 114 in .github/workflows/release.yml
|
||
- name: Update helm-charts index.yaml | ||
working-directory: helm-charts | ||
env: | ||
CR_OWNER: grafana | ||
CR_GIT_REPO: helm-charts | ||
CR_PACKAGE_PATH: ${{ env.PACKAGE_PATH }} | ||
CR_SKIP_EXISTING: true | ||
CR_TOKEN: "${{ secrets.GH_BOT_ACCESS_TOKEN }}" | ||
run: "${BIN_PATH}/cr" index --index-path "${INDEX_PATH}" --push | ||
Check failure on line 123 in .github/workflows/release.yml
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ type: application | |
icon: https://raw.githubusercontent.com/grafana/grafana/main/public/img/grafana_icon.svg | ||
sources: | ||
- https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring | ||
version: 2.0.0-alpha.1 | ||
version: 2.0.0-rc.1 | ||
appVersion: 2.0.0 | ||
maintainers: | ||
- email: [email protected] | ||
|
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
Binary file modified
BIN
+1 Byte
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-annotation-autodiscovery-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
+3 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-application-observability-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-cluster-events-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
-334 Bytes
(99%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-cluster-metrics-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-integrations-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-pod-logs-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-profiling-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-prometheus-operator-objects-1.0.0.tgz
Binary file not shown.
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
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
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
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
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
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
Oops, something went wrong.