From 63338e57298ee85f358a7462390999129d771f59 Mon Sep 17 00:00:00 2001 From: Kairo Araujo Date: Thu, 12 Sep 2024 13:17:43 +0200 Subject: [PATCH] build: add auto chart release and version control - Allows user to use `helm repo` command - Enable the project control of the Archivista charts versions Signed-off-by: Kairo Araujo --- .github/workflows/charts-release.yml | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/charts-release.yml diff --git a/.github/workflows/charts-release.yml b/.github/workflows/charts-release.yml new file mode 100644 index 00000000..e5cc2eee --- /dev/null +++ b/.github/workflows/charts-release.yml @@ -0,0 +1,47 @@ +# Copyright 2023 The Archivista Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +name: Release Archivista Charts + +on: + push: + branches: + - main + +jobs: + release: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + 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@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - name: Run chart-releaser + uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 + with: + pages_branch: charts-page + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file