From 82556f516d0b022f86acd1a52802ca26b5db83cb Mon Sep 17 00:00:00 2001 From: Komail Kanjee <1796298+KomailKanjee@users.noreply.github.com> Date: Sat, 16 Nov 2024 19:27:22 -0500 Subject: [PATCH 1/2] Add chart publish workflow --- .github/workflows/chart-publishing.yaml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/chart-publishing.yaml diff --git a/.github/workflows/chart-publishing.yaml b/.github/workflows/chart-publishing.yaml new file mode 100644 index 0000000..9b15bbc --- /dev/null +++ b/.github/workflows/chart-publishing.yaml @@ -0,0 +1,35 @@ +## Reference: https://github.com/helm/chart-releaser-action +name: Release Charts + +on: + push: + branches: + - main + +jobs: + release: + # depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions + # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - 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@v4 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.6.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" From ba28a5f5e1aa15dd8680dfc80240d1141a9ccbe5 Mon Sep 17 00:00:00 2001 From: Komail Kanjee <1796298+KomailKanjee@users.noreply.github.com> Date: Sat, 16 Nov 2024 19:31:24 -0500 Subject: [PATCH 2/2] renaming some workflows to match tense --- .../{chart-linting-testing.yaml => chart-lint-and-test.yaml} | 2 +- .github/workflows/{chart-publishing.yaml => chart-release.yaml} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{chart-linting-testing.yaml => chart-lint-and-test.yaml} (98%) rename .github/workflows/{chart-publishing.yaml => chart-release.yaml} (100%) diff --git a/.github/workflows/chart-linting-testing.yaml b/.github/workflows/chart-lint-and-test.yaml similarity index 98% rename from .github/workflows/chart-linting-testing.yaml rename to .github/workflows/chart-lint-and-test.yaml index abac9fa..75543b5 100644 --- a/.github/workflows/chart-linting-testing.yaml +++ b/.github/workflows/chart-lint-and-test.yaml @@ -1,4 +1,4 @@ -name: Linting and Testing +name: Chart Lint and Test on: pull_request permissions: diff --git a/.github/workflows/chart-publishing.yaml b/.github/workflows/chart-release.yaml similarity index 100% rename from .github/workflows/chart-publishing.yaml rename to .github/workflows/chart-release.yaml