-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/update-minio
- Loading branch information
Showing
12 changed files
with
158 additions
and
40 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Bump grafana version specified in the values.yaml | ||
sources: | ||
latestGrafanaRelease: | ||
name: Get latest grafana release on Github | ||
kind: githubrelease | ||
spec: | ||
owner: grafana | ||
repository: grafana | ||
token: '{{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}' | ||
versionfilter: | ||
kind: latest | ||
transformers: | ||
- trimprefix: "v" | ||
conditions: | ||
grafanaImagePublished: | ||
name: Ensure the latest Grafana is published on DockerHub | ||
kind: dockerimage | ||
source-id: latestGrafanaRelease | ||
spec: | ||
image: "grafana/grafana" | ||
targets: | ||
grafana: | ||
name: Update Grafana version in values.yaml | ||
kind: helmchart | ||
spec: | ||
file: values.yaml | ||
key: $.grafana.version | ||
name: charts/meta-monitoring | ||
versionincrement: none | ||
sourceid: latestGrafanaRelease |
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 |
---|---|---|
|
@@ -175,3 +175,35 @@ jobs: | |
labels: dependencies | ||
branch: chore/update-minio | ||
delete-branch: true | ||
|
||
updateGrafana: | ||
name: Update the Grafana version | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Updatecli | ||
uses: updatecli/updatecli-action@v2 | ||
|
||
- name: Run Updatecli | ||
id: update-grafana | ||
run: | | ||
updatecli apply --config ${UPDATECLI_CONFIG_DIR}/grafana.yaml | ||
if ! git diff --exit-code > /dev/null; then | ||
echo "changed=true" >> "${GITHUB_OUTPUT}" | ||
fi | ||
- name: Create pull request | ||
if: steps.update-grafana.outputs.changed == 'true' | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
title: "[dependency] Update the Grafana version" | ||
body: "Updates the Grafana version" | ||
base: main | ||
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" | ||
committer: "GitHub <[email protected]>" | ||
commit-message: Update Grafana version | ||
labels: dependencies | ||
branch: chore/update-minio | ||
delete-branch: true |
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
Binary file not shown.
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