ci: fix helm release #33
Workflow file for this run
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
name: Helm weekly release PR | |
on: | |
schedule: | |
- cron: '0 10 * * 1-5' # 10 UTC on weekdays; if we miss published images one day, they should align the day after | |
workflow_dispatch: # for manual testing | |
pull_request: | |
permissions: | |
contents: "read" | |
id-token: "write" | |
pull-requests: "write" | |
jobs: | |
weekly-release-pr: | |
runs-on: ubuntu-latest | |
env: | |
BUILD_IN_CONTAINER: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gabe565/setup-helm-docs-action@v1 | |
with: | |
version: v1.11.2 | |
- id: "get_github_app_token" | |
name: "get github app token" | |
uses: "actions/create-github-app-token@v1" | |
with: | |
app-id: "${{ secrets.APP_ID }}" | |
owner: "${{ github.repository_owner }}" | |
private-key: "${{ secrets.APP_PRIVATE_KEY }}" | |
- name: "Login to DockerHub (from vault)" | |
uses: "grafana/shared-workflows/actions/dockerhub-login@main" | |
- uses: imjasonh/[email protected] | |
# - run: | | |
# echo "${{ env.DOCKER_PASSWORD }}" | crane auth login registry.hub.docker.com --username "${{ env.DOCKER_USERNAME }}" --password-stdin | |
- name: Update/regenerate files for k release | |
id: update-k | |
run: | | |
bash .github/workflows/scripts/helm-weekly-release.sh -k | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ steps.get_github_app_token.outputs.token }} | |
title: "chore: release loki Helm chart ${{ steps.update-k.outputs.new_chart_version }}" | |
body: Automated PR created by [helm-weekly-release-pr.yaml](https://github.com/grafana/loki/blob/main/.github/workflows/helm-weekly-release-pr.yaml) | |
commit-message: Update loki chart to ${{ steps.update-k.outputs.new_chart_version }} | |
branch: helm-chart-weekly-${{ steps.update-k.outputs.new_chart_version }} | |
base: ${{ steps.update-k.outputs.weekly }} | |
labels: helm | |
- name: Update/regenerate files for standard release | |
id: update | |
run: bash .github/workflows/scripts/helm-weekly-release.sh | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ steps.get_github_app_token.outputs.token }} | |
title: "chore: release loki Helm chart ${{ steps.update.outputs.new_chart_version }}" | |
body: Automated PR created by [helm-weekly-release-pr.yaml](https://github.com/grafana/loki/blob/main/.github/workflows/helm-weekly-release-pr.yaml) | |
commit-message: Update loki chart to ${{ steps.update.outputs.new_chart_version }} | |
branch: helm-chart-weekly-${{ steps.update.outputs.new_chart_version }} | |
base: main | |
labels: helm |