Skip to content

fix: remove namespace and paused fields from image trigger annotations #36

fix: remove namespace and paused fields from image trigger annotations

fix: remove namespace and paused fields from image trigger annotations #36

Workflow file for this run

name: Publish Helm Chart
on:
push:
branches: [main, dev]
paths:
- chart/**
- .github/workflows/chart-release.yml
pull_request:
paths:
- chart/**
- .github/workflows/chart-release.yml
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: azure/setup-helm@v5
- name: Lint (default values)
run: helm lint chart/
- name: Lint (dev values)
run: helm lint chart/ -f chart/values-dev.yaml
release:
name: Release
needs: lint
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: write # create GitHub Releases and push to gh-pages
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # chart-releaser needs full history to diff versions
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- uses: azure/setup-helm@v5
- name: Stamp dev pre-release version
if: github.ref == 'refs/heads/dev'
run: |
current=$(grep '^version:' chart/Chart.yaml | awk '{print $2}')
sed -i "s/^version:.*/version: ${current}-dev.${{ github.run_number }}/" chart/Chart.yaml
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.7.0
with:
# chart/ lives at the repo root, so charts_dir=. lets cr find it
# via ./*/Chart.yaml without touching Go source directories.
charts_dir: .
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"