Compare commits

..

8 Commits

4 changed files with 97 additions and 22 deletions

View File

@ -8,12 +8,31 @@ on:
paths:
- charts/**
permissions:
contents: write
packages: write
pages: write
id-token: write
concurrency:
group: release
cancel-in-progress: false
jobs:
release:
permissions:
contents: write
release-charts:
name: Release Charts
runs-on: ubuntu-latest
env:
AUTHOR_USER: charts-bot
AUTHOR_EMAIL: 178334506+plcnk-charts-bot[bot]@users.noreply.github.com
steps:
- name: Generate Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
@ -21,10 +40,57 @@ jobs:
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config user.name "${{ env.AUTHOR_USER }}"
git config user.email "${{ env.AUTHOR_EMAIL }}"
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
- name: Add Helm repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add bjw-s https://bjw-s.github.io/helm-charts
- name: Install chart-releaser
uses: helm/chart-releaser-action@v1.5.0
with:
install_only: true
- name: Package charts
id: package_charts
run: |
changed_charts=""
for dir in charts/*; do
chart_name="$(basename "$dir")"
version="$(yq '.version' "$dir/Chart.yaml")"
if ! git rev-parse "$chart_name-${version#v}" &>/dev/null; then
echo "Packaging chart $chart_name..."
cr package --package-path=.cr-release-packages "$dir"
changed_charts+="$chart_name,"
fi
done
echo "changed_charts=${changed_charts%,}" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: steps.package_charts.outputs.changed_charts != ''
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Push charts to GHCR
if: steps.package_charts.outputs.changed_charts != ''
run: |
for pkg in .cr-release-packages/*; do
if [ -z "${pkg:-}" ]; then
break
fi
echo "Pushing $pkg..."
helm push "$pkg" "oci://ghcr.io/$GITHUB_REPOSITORY_OWNER/charts"
done
- name: Publish charts
uses: helm/chart-releaser-action@v1.5.0
if: steps.package_charts.outputs.changed_charts != ''
with:
skip_packaging: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_TOKEN: ${{ steps.app-token.outputs.token }}

View File

@ -8,9 +8,9 @@
<a href="https://github.com/plcnk/charts/actions/workflows/release.yaml"><img src="https://github.com/plcnk/charts/actions/workflows/release.yaml/badge.svg" /></a>
</p>
# plcnk's Helm Charts
# Charts
Charts for deploying applications on [Kubernetes](https://kubernetes.io/) using [Helm](https://helm.sh/).
A collection of [Helm](https://helm.sh) charts for [Kubernetes](https://kubernetes.io/).
The code in this repository is provided as-is with no warranties.
@ -32,7 +32,7 @@ You can then run `helm search repo plcnk` to see the charts.
| Chart | Description |
| ----- | ----------- |
| [IT-Tools <img src='https://raw.githubusercontent.com/plcnk/charts/master/charts/it-tools/icon.svg' alt='it-tools icon' width='18px' align='right' loading='lazy'>](charts/it-tools/) | Collection of handy online tools for developers, with great UX. |
| [IT-Tools <img src='https://raw.githubusercontent.com/plcnk/charts/master/charts/it-tools/icon.svg' alt='it-tools icon' width='18px' align='right' loading='lazy'>](https://github.com/plcnk/charts/tree/master/charts/it-tools) | Collection of handy online tools for developers, with great UX. |
## License

View File

@ -4,7 +4,7 @@ description: Collection of handy online tools for developers, with great UX.
home: https://github.com/plcnk/charts/tree/master/charts/it-tools
icon: https://raw.githubusercontent.com/plcnk/charts/master/charts/it-tools/icon.svg
type: application
version: 1.0.2
version: 1.0.5
# renovate datasource=docker depName=ghcr.io/corentinth/it-tools
appVersion: "2024.5.13-a0bc346"
kubeVersion: ">=1.22.0-0"
@ -15,7 +15,7 @@ keywords:
sources:
- https://github.com/CorentinTh/it-tools
annotations:
artifacthub.io/changes: |
artifacthub.io/changes: |-
- kind: changed
description: Changed chart metadata
artifacthub.io/links: |-

View File

@ -1,4 +1,4 @@
# it-tools
# IT-Tools
Helm chart for deploying [it-tools](https://it-tools.tech/).
@ -11,24 +11,33 @@ it-tools is a collection of handy online tools for developers, with great UX.
* <https://github.com/CorentinTh/it-tools>
## Get repo
## Installing the Chart
To install the chart with the release name `it-tools`
### OCI (Recommended)
```console
helm install it-tools oci://ghcr.io/plcnk/charts/it-tools
```
### Traditional
```console
helm repo add plcnk https://charts.plcnk.net
helm repo update
helm install it-tools plcnk/it-tools
```
## Install chart
## Uninstalling the Chart
To uninstall the `it-tools` deployment
```console
helm install [RELEASE_NAME] plcnk/it-tools
helm uninstall it-tools
```
## Uninstall chart
```console
helm uninstall [RELEASE_NAME]
```
The command removes all the Kubernetes components associated with the chart **including persistent volumes** and deletes the release.
## Parameters