Skip to content

Commit

Permalink
build: add auto chart release and version control (#376)
Browse files Browse the repository at this point in the history
- Allows user to use `helm repo` command
- Enable the project control of the Archivista charts versions

Signed-off-by: Kairo Araujo <[email protected]>
  • Loading branch information
kairoaraujo committed Sep 13, 2024
1 parent 25a45c3 commit 70a46a0
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/charts-release.yml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
- 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 }}"

0 comments on commit 70a46a0

Please sign in to comment.