mirror of
https://github.com/plcnk/charts.git
synced 2026-04-06 17:50:49 +00:00
Compare commits
3 Commits
it-tools-1
...
it-tools-1
| Author | SHA1 | Date | |
|---|---|---|---|
| afd6a5141e | |||
| 1c16ee1558 | |||
| 26326862fc |
82
.github/workflows/release.yaml
vendored
82
.github/workflows/release.yaml
vendored
@ -8,12 +8,31 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- charts/**
|
- charts/**
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
packages: write
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: release
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release-charts:
|
||||||
permissions:
|
name: Release Charts
|
||||||
contents: write
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
AUTHOR_USER: charts-bot
|
||||||
|
AUTHOR_EMAIL: 178334506+plcnk-charts-bot[bot]@users.noreply.github.com
|
||||||
steps:
|
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
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -21,10 +40,57 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
run: |
|
run: |
|
||||||
git config user.name "$GITHUB_ACTOR"
|
git config user.name "${{ env.AUTHOR_USER }}"
|
||||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
git config user.email "${{ env.AUTHOR_EMAIL }}"
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Add Helm repos
|
||||||
uses: helm/chart-releaser-action@v1.6.0
|
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:
|
env:
|
||||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
CR_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
|
|||||||
@ -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
|
home: https://github.com/plcnk/charts/tree/master/charts/it-tools
|
||||||
icon: https://raw.githubusercontent.com/plcnk/charts/master/charts/it-tools/icon.svg
|
icon: https://raw.githubusercontent.com/plcnk/charts/master/charts/it-tools/icon.svg
|
||||||
type: application
|
type: application
|
||||||
version: 1.0.2
|
version: 1.0.4
|
||||||
# renovate datasource=docker depName=ghcr.io/corentinth/it-tools
|
# renovate datasource=docker depName=ghcr.io/corentinth/it-tools
|
||||||
appVersion: "2024.5.13-a0bc346"
|
appVersion: "2024.5.13-a0bc346"
|
||||||
kubeVersion: ">=1.22.0-0"
|
kubeVersion: ">=1.22.0-0"
|
||||||
@ -17,7 +17,7 @@ sources:
|
|||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: changed
|
- kind: changed
|
||||||
description: Changed chart metadata
|
description: Test ghcr release
|
||||||
artifacthub.io/links: |-
|
artifacthub.io/links: |-
|
||||||
- name: App Source
|
- name: App Source
|
||||||
url: https://github.com/CorentinTh/it-tools
|
url: https://github.com/CorentinTh/it-tools
|
||||||
|
|||||||
Reference in New Issue
Block a user