Skip to content

Release Charts

Release Charts #246

Workflow file for this run

name: Release Charts
on:
push:
branches:
- main
paths-ignore:
- '.github/**'
workflow_dispatch:
inputs:
target:
description: "target chart to release"
type: string
default: ""
required: false
dryrun:
description: "not actually release, but check what would be done"
type: boolean
default: true
required: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.13.1
- name: Add Helm repos
run: |
helm repo add mongodb https://mongodb.github.io/helm-charts
- name: Allow script
run: |
chmod +x ./.github/actions/releaser/cr.sh
- name: Helm Chart Dependency Releaser
uses: ./.github/actions/releaser
if: github.event.inputs.target == ''
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_repo_url: https://mongodb.github.io/helm-charts
target: |
atlas-operator-crds
community-operator-crds
dryrun: ${{ github.event.inputs.dryrun }}
- name: Get latest charts from repo
run: |
helm repo update
- name: Helm Chart Releaser
uses: ./.github/actions/releaser
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_repo_url: https://mongodb.github.io/helm-charts
target: ${{ github.event.inputs.target }}
dryrun: ${{ github.event.inputs.dryrun }}