Compare commits

...

7 Commits

Author SHA1 Message Date
1c16ee1558 test(release): Test ghcr release 2024-08-14 00:13:29 +02:00
26326862fc feat(release): Configure ghcr releases (#4) 2024-08-14 00:11:47 +02:00
be39c8c240 fix(chart): Fix icon path 2024-08-13 19:33:28 +02:00
5e11c94795 feat(renovate): Configure Renovate & change Chart metadata (#3) 2024-08-13 19:25:15 +02:00
1a462f655d feat(doc): Update README.md 2024-08-13 00:52:53 +02:00
13e72521ae chore: Configure Renovate (#2)
* Add renovate.json

* feat(deps): Configure Renovate

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: plcnk <romain.pluciennik@gmail.com>
2024-08-12 22:53:41 +02:00
290272100f feat(tools): Changed chart metadata 2024-08-12 19:29:29 +02:00
5 changed files with 139 additions and 40 deletions

36
.github/renovate.json5 vendored Normal file
View File

@ -0,0 +1,36 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>plcnk/.github:default.json5",
":semanticCommitTypeAll(chore)"
],
"regexManagers": [
{
"fileMatch": ["\\.yaml$"],
"matchStrings": [
"# ?renovate datasource=(?<datasource>.+?) depName=(?<depName>.+)\\n.+: [\"']?(?<currentValue>.+?)[\"']?\\n"
]
}
],
"packageRules": [
{
"matchDatasources": ["helm"],
"commitMessageTopic": "{{depName}} Helm release"
},
{
"matchDatasources": ["docker"],
"matchPackageNames": ["ghcr.io/dgtlmoon/changedetection.io"],
"versioning": "loose"
},
{
"matchDatasources": ["docker"],
"matchPackageNames": ["ghcr.io/juanfont/headscale"],
"allowedVersions": "!/^0.23.0$/"
},
{
"matchDatasources": ["docker"],
"matchPackageNames": ["eqalpha/keydb"],
"versioning": "regex:^(?<compatability>.+?)_v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)$"
}
]
}

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
- 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.6.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.6.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,10 +8,6 @@
<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>
<p align="center">
<img src="https://img.shields.io/github/v/release/plcnk/charts?filter=it-tools-*" />
</p>
# plcnk's Helm Charts
Charts for deploying applications on [Kubernetes](https://kubernetes.io/) using [Helm](https://helm.sh/).
@ -34,10 +30,10 @@ You can then run `helm search repo plcnk` to see the charts.
## Available charts
| Chart | Chart Version | App Version | Description |
| --------------------------------------------------------------------- | ------------- | ----------------- | --------------------------------------------------------------- |
| [it-tools](https://github.com/plcnk/charts/tree/main/charts/it-tools) | 0.1.0 | 2024.5.13-a0bc346 | Collection of handy online tools for developers, with great UX. |
| 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. |
## License
[MIT License](https://github.com/plcnk/charts/blob/master/LICENSE).
This project is licensed under the [MIT License](https://github.com/plcnk/charts/blob/master/LICENSE).

View File

@ -1,30 +1,25 @@
apiVersion: v2
name: it-tools
description: Collection of handy online tools for developers, with great UX.
icon: https://raw.githubusercontent.com/CorentinTh/it-tools/main/public/mstile-310x310.png
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.3
# renovate datasource=docker depName=ghcr.io/corentinth/it-tools
appVersion: "2024.5.13-a0bc346"
kubeVersion: ">=1.22.0-0"
keywords:
- it-tools
- it
- tools
sources:
- https://github.com/CorentinTh/it-tools
maintainers:
- name: Romain Pluciennik
email: romain.pluciennik@gmail.com
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "2024.5.13-a0bc346"
annotations:
artifacthub.io/changes: |
- kind: added
description: Test ghcr release
artifacthub.io/links: |-
- name: App Source
url: https://github.com/CorentinTh/it-tools
- name: Chart Source
url: https://github.com/plcnk/charts/tree/master/charts/it-tools

6
charts/it-tools/icon.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.7 KiB