feat(common): update bitnami/common to 2.23.0 #44
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: GitHub CI | |
permissions: | |
contents: write | |
packages: write | |
on: | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
shell: 'bash -Eeuo pipefail -x {0}' | |
jobs: | |
release-charts: | |
name: Release Charts | |
runs-on: ubuntu-latest | |
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: Add dependency chart repositories | |
run: | | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
helm repo add grafana https://grafana.github.io/helm-charts | |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | |
helm repo add sunasteriskrnd https://sun-asterisk-research.github.io/helm-charts | |
helm repo add timescale https://charts.timescale.com | |
- name: Release Charts | |
uses: helm/[email protected] | |
with: | |
config: cr.yaml | |
charts_dir: charts | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
HELM_EXPERIMENTAL_OCI: "1" | |
- name: Login to GHCR | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push Charts to GHCR | |
run: | | |
for pkg in .cr-release-packages/*.tgz; do | |
name="$(helm show chart "${pkg}" | yq e '.name')" | |
version="$(helm show chart "${pkg}" | yq e '.version')" | |
if helm show chart oci://ghcr.io/${{ github.repository }}/${name} --version "${version}" >/dev/null 2>&1; then | |
echo Version "${version}" already exist for chart "${name}". Skipping... | |
else | |
helm push "${pkg}" oci://ghcr.io/${{ github.repository }} | |
fi | |
done |