2021-01-11 01:29:16 +00:00
|
|
|
name: "Charts: Release"
|
2020-01-10 15:52:38 +00:00
|
|
|
|
2021-04-29 17:37:14 +00:00
|
|
|
concurrency: helm-release
|
|
|
|
|
2020-01-10 15:52:38 +00:00
|
|
|
on:
|
2021-03-18 12:18:14 +00:00
|
|
|
workflow_dispatch:
|
2020-01-10 15:52:38 +00:00
|
|
|
push:
|
|
|
|
branches:
|
2021-02-17 22:43:56 +00:00
|
|
|
- master
|
2020-11-24 13:30:11 +00:00
|
|
|
paths:
|
2021-02-17 22:43:56 +00:00
|
|
|
- 'charts/**'
|
2020-01-10 15:52:38 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-11-26 13:19:28 +00:00
|
|
|
release:
|
2021-02-22 18:30:40 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2020-11-26 13:19:28 +00:00
|
|
|
steps:
|
2021-06-15 08:13:20 +00:00
|
|
|
- name: Get k8s-at-home token
|
|
|
|
id: get-app-token
|
|
|
|
uses: getsentry/action-github-app-token@v1
|
|
|
|
with:
|
|
|
|
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
|
|
|
|
private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }}
|
|
|
|
|
2021-02-17 22:43:56 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
2021-06-15 08:13:20 +00:00
|
|
|
token: ${{ steps.get-app-token.outputs.token }}
|
2021-06-12 15:09:18 +00:00
|
|
|
ref: master
|
2021-02-17 22:43:56 +00:00
|
|
|
fetch-depth: 0
|
2020-11-26 13:19:28 +00:00
|
|
|
|
2021-02-17 22:43:56 +00:00
|
|
|
- name: Configure Git
|
|
|
|
run: |
|
2021-06-15 08:13:20 +00:00
|
|
|
git config user.name "k8s-at-home[bot]"
|
2021-06-15 09:27:57 +00:00
|
|
|
git config user.email "k8s-at-home[bot]@users.noreply.github.com"
|
2020-11-24 13:30:11 +00:00
|
|
|
|
2021-02-17 22:43:56 +00:00
|
|
|
- name: Install Helm
|
|
|
|
uses: azure/setup-helm@v1
|
|
|
|
with:
|
2021-07-21 19:46:41 +00:00
|
|
|
version: v3.6.3
|
2021-02-18 16:15:38 +00:00
|
|
|
|
2021-02-17 22:43:56 +00:00
|
|
|
- name: Run chart-releaser
|
2021-06-01 04:55:26 +00:00
|
|
|
uses: helm/chart-releaser-action@v1.2.1
|
2021-02-17 22:43:56 +00:00
|
|
|
with:
|
2021-03-18 12:15:55 +00:00
|
|
|
charts_dir: charts/*
|
2021-02-17 22:43:56 +00:00
|
|
|
charts_repo_url: https://k8s-at-home.com/charts/
|
|
|
|
env:
|
2021-06-15 08:13:20 +00:00
|
|
|
CR_TOKEN: "${{ steps.get-app-token.outputs.token }}"
|
2021-06-01 11:01:06 +00:00
|
|
|
CR_SKIP_EXISTING: "true"
|
2021-06-11 15:09:14 +00:00
|
|
|
|
|
|
|
generate-summary:
|
|
|
|
name: Auto-generate charts summary
|
|
|
|
runs-on: ubuntu-20.04
|
2021-07-12 08:33:02 +00:00
|
|
|
needs:
|
2021-07-12 08:34:13 +00:00
|
|
|
- release
|
2021-06-11 15:09:14 +00:00
|
|
|
steps:
|
|
|
|
- name: Get k8s-at-home token
|
|
|
|
id: get-app-token
|
|
|
|
uses: getsentry/action-github-app-token@v1
|
|
|
|
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.get-app-token.outputs.token }}
|
2021-07-12 08:33:02 +00:00
|
|
|
ref: master
|
|
|
|
fetch-depth: 0
|
2021-06-11 15:09:14 +00:00
|
|
|
|
|
|
|
- name: Install yq
|
|
|
|
uses: chrisdickinson/setup-yq@latest
|
|
|
|
with:
|
|
|
|
yq-version: v4.9.3
|
|
|
|
|
|
|
|
- name: Run script
|
|
|
|
run: |
|
|
|
|
./hack/gen-chart-summary.sh
|
|
|
|
|
2021-06-12 14:43:21 +00:00
|
|
|
- name: Create Commit
|
2021-06-11 15:09:14 +00:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
|
|
with:
|
2021-06-12 15:01:32 +00:00
|
|
|
push_options: --force
|
2021-06-12 14:43:21 +00:00
|
|
|
commit_message: Auto-generate chart summary [no ci]
|
2021-06-11 15:09:14 +00:00
|
|
|
commit_user_name: k8s-at-home[bot]
|
2021-06-15 09:27:57 +00:00
|
|
|
commit_user_email: k8s-at-home[bot]@users.noreply.github.com
|
2021-06-11 15:09:14 +00:00
|
|
|
commit_author: k8s-at-home[bot] <k8s-at-home[bot]@users.noreply.github.com>
|
|
|
|
file_pattern: charts/README.md
|