ci: update Calyptia Cloud Standalone chart from latest version intern… #205
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: Release Charts | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
- name: Add dependency charts | |
run: | | |
helm repo add fluent https://fluent.github.io/helm-charts --force-update | |
helm repo add calyptia https://helm.calyptia.com --force-update | |
helm repo add grafana https://grafana.github.io/helm-charts --force-update | |
helm repo add prometheus https://prometheus-community.github.io/helm-charts --force-update | |
helm repo update | |
shell: bash | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
with: | |
charts_dir: charts | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
CR_SKIP_EXISTING: true | |
update-chart-yaml-template: | |
name: Raise PR to update install.yaml | |
runs-on: ubuntu-latest | |
permissions: | |
contents: none | |
needs: | |
- release | |
steps: | |
- name: Checkout repo with PAT supporting workflows | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.CI_PAT }} | |
- run: | | |
helm repo add calyptia http://helm.calyptia.com | |
helm repo update | |
helm template calyptia calyptia/core --set project_token='$PROJECT_TOKEN',core_instance_tags='$CORE_INSTANCE_TAGS',name='$CORE_INSTANCE_NAME' > install-core.yaml.tmpl | |
shell: bash | |
- name: Create PR for update | |
id: cpr | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: 'ci: update install-core.yaml template' | |
signoff: true | |
branch: ci_update_yaml_template | |
delete-branch: true | |
title: 'ci: update install-core.yaml template' | |
token: ${{ secrets.CI_PAT }} | |
labels: ci,automerge | |
add-paths: | | |
*yaml.tmpl | |
body: | | |
Update YAML | |
- Created by ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
- Auto-generated by create-pull-request: https://github.com/peter-evans/create-pull-request | |
draft: false |