diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a1ede6ccd..581f3aba4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,7 +4,7 @@ on: push: branches: - main - - alpha + - 3.x paths-ignore: - README.md diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index fc7bdfe62..df5277615 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -3,7 +3,7 @@ name: release-chart on: push: tags: - - 'policy-reporter-alpha-chart-v*' + - 'policy-reporter-preview-chart-v*' jobs: helm-chart: @@ -14,27 +14,25 @@ jobs: steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + fetch-depth: 0 + - name: Verify Helm Docs run: | set -e make verify-helm-docs + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + - name: Install Helm uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 with: version: v3.10.3 - - name: Set Tag - run: | - set -e - echo "TAG=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" - - name: Set version - run: | - set -e - TAG=${{ github.ref_name }} - echo "CHART_VERSION=${TAG#policy-reporter-alpha-chart--}" >> $GITHUB_ENV + - name: Run chart-releaser - uses: stefanprodan/helm-gh-pages@0ad2bb377311d61ac04ad9eb6f252fb68e207260 #v1.7.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - linting: off - charts_dir: charts - chart_version: ${{ env.CHART_VERSION }} + uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/.github/workflows/release-image.yaml b/.github/workflows/release-image.yaml index 19e9f34d5..e189f4367 100644 --- a/.github/workflows/release-image.yaml +++ b/.github/workflows/release-image.yaml @@ -2,7 +2,7 @@ name: release-image on: push: branches: - - alpha + - 3.x permissions: contents: read diff --git a/charts/policy-reporter/Chart.yaml b/charts/policy-reporter/Chart.yaml index 5f94f73eb..c2c21383c 100644 --- a/charts/policy-reporter/Chart.yaml +++ b/charts/policy-reporter/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -name: policy-reporter-alpha +name: policy-reporter-preview description: | Policy Reporter watches for PolicyReport Resources. It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord diff --git a/charts/policy-reporter/README.md b/charts/policy-reporter/README.md index 1c9dc47ae..3c463c318 100644 --- a/charts/policy-reporter/README.md +++ b/charts/policy-reporter/README.md @@ -1,4 +1,4 @@ -# policy-reporter-alpha +# policy-reporter-preview Policy Reporter watches for PolicyReport Resources. It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord