mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
a3582f3c83
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
88 lines
2.3 KiB
YAML
88 lines
2.3 KiB
YAML
name: "Charts: Release"
|
|
|
|
concurrency: helm-release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "charts/**"
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Generate Token
|
|
uses: tibdex/github-app-token@v1
|
|
id: generate-token
|
|
with:
|
|
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
|
|
private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }}
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
token: ${{ steps.generate-token.outputs.token }}
|
|
ref: master
|
|
fetch-depth: 0
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.name "k8s-at-home[bot]"
|
|
git config user.email "k8s-at-home[bot]@users.noreply.github.com"
|
|
|
|
- name: Install Helm
|
|
uses: azure/setup-helm@v1
|
|
with:
|
|
version: v3.6.3
|
|
|
|
- name: Run chart-releaser
|
|
uses: helm/chart-releaser-action@v1.2.1
|
|
with:
|
|
charts_dir: charts/*
|
|
charts_repo_url: https://k8s-at-home.com/charts/
|
|
env:
|
|
CR_TOKEN: "${{ steps.generate-token.outputs.token }}"
|
|
CR_SKIP_EXISTING: "true"
|
|
|
|
generate-summary:
|
|
name: Auto-generate charts summary
|
|
runs-on: ubuntu-20.04
|
|
needs:
|
|
- release
|
|
steps:
|
|
- name: Generate Token
|
|
uses: tibdex/github-app-token@v1
|
|
id: generate-token
|
|
with:
|
|
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
|
|
private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }}
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
token: ${{ steps.generate-token.outputs.token }}
|
|
ref: master
|
|
fetch-depth: 0
|
|
|
|
- name: Install yq
|
|
uses: chrisdickinson/setup-yq@latest
|
|
with:
|
|
yq-version: v4.9.3
|
|
|
|
- name: Run script
|
|
run: |
|
|
./hack/gen-chart-summary.sh
|
|
|
|
- name: Create Commit
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
push_options: --force
|
|
commit_message: Auto-generate chart summary [no ci]
|
|
commit_user_name: k8s-at-home[bot]
|
|
commit_user_email: k8s-at-home[bot]@users.noreply.github.com
|
|
commit_author: k8s-at-home[bot] <k8s-at-home[bot]@users.noreply.github.com>
|
|
file_pattern: charts/README.md
|