Merge pull request #69 from grafana/fix_release_flow

Get Release Helm chart Github action working
This commit is contained in:
Michel Hollands 2024-04-23 08:51:54 +01:00 committed by GitHub
commit e81b1246f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 23 additions and 5 deletions

View File

@ -8,9 +8,6 @@ env:
CR_PACKAGE_PATH: "${{ github.workspace }}/.cr-release-packages" CR_PACKAGE_PATH: "${{ github.workspace }}/.cr-release-packages"
CR_TOOL_PATH: "${{ github.workspace }}/.cr-tool" CR_TOOL_PATH: "${{ github.workspace }}/.cr-tool"
CR_VERSION: "1.5.0" CR_VERSION: "1.5.0"
permissions:
contents: read
id-token: write
jobs: jobs:
setup: setup:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -65,12 +62,23 @@ jobs:
needs: [setup] needs: [setup]
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: needs.setup.outputs.changed == 'true' if: needs.setup.outputs.changed == 'true'
permissions:
contents: write
id-token: write
steps: steps:
- id: get-secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@main
with:
# Secrets placed in the ci/repo/grafana/<repo>/<path> path in Vault
repo_secrets: |
APP_ID=github-app:app-id
PRIVATE_KEY=github-app:private-key
- uses: actions/create-github-app-token@v1 - uses: actions/create-github-app-token@v1
id: app-token id: app-token
with: with:
app-id: ${{ secrets.app-id }} app-id: ${{ env.APP_ID }}
private-key: ${{ secrets.private-key }} private-key: ${{ env.PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:

View File

@ -0,0 +1,10 @@
# Create a new release
1. Update the version field in charts/meta-monitoring/Chart.yaml in a new PR. Merge this PR if approved.
2. On the [Actions tab](https://github.com/grafana/meta-monitoring-chart/actions):
- Select `Release Helm chart` in the workflows on the left
- Click the `Run workflow` button
- Leave the `main` branch as is
- Click the green `Run workflow` button