Skip to content

chore: bump chart

chore: bump chart #112

Workflow file for this run

name: Create Releases
on:
push:
branches:
- main
jobs:
changes:
runs-on: ubuntu-latest
# Required permissions
permissions:
pull-requests: read
outputs:
# Expose matched filters as job 'packages' output variable
charts: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
argocd: charts/argocd/**
aws: charts/aws/**
azure: charts/azure/**
kubernetes: charts/kubernetes/**
mission-control: charts/mission-control/**
flux: charts/flux/**
prometheus: charts/prometheus/**
# JOB to build and test each of modified packages
build:
needs: changes
strategy:
matrix:
# Parse JSON array containing names of all filters matching any of changed files
# e.g. ['package1', 'package2'] if both package folders contains changes
chart: ${{ fromJSON(needs.changes.outputs.charts) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.12.0
- name: Package Helm chart
run: |
cd charts/${{ matrix.chart }}
yq -i e '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' Chart.yaml
helm package -d ../.. .
- name: Clone charts repo
uses: actions/checkout@v3
with:
repository: "${{ github.repository_owner }}/charts"
path: chart-index
token: "${{ secrets.FLANKBOT }}"
- name: Update chart repo
run: |
cd chart-index
cp ../mission-control-*.tgz ./
helm repo index --merge index.yaml .
- name: Push changes to chart repo
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Release ${{ needs.semantic-release.outputs.release-version }} of mission-control-${{ matrix.chart }}"
branch: gh-pages
repository: ./chart-index