mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
ci: Add initial CI
This commit is contained in:
parent
878de460fd
commit
a2a0352573
1 changed files with 40 additions and 0 deletions
40
.github/workflows/charts-release.yaml
vendored
Normal file
40
.github/workflows/charts-release.yaml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
name: "Charts: Release"
|
||||
|
||||
concurrency: helm-release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "charts/**"
|
||||
|
||||
jobs:
|
||||
release-charts:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Get k8s-at-home token
|
||||
id: get-app-token
|
||||
uses: getsentry/action-github-app-token@v1
|
||||
with:
|
||||
app_id: ${{ secrets.BJWS_APP_ID }}
|
||||
private_key: ${{ secrets.BJWS_APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ steps.get-app-token.outputs.token }}
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "bjw-s-bot[bot]"
|
||||
git config user.email "bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>"
|
||||
|
||||
- name: Publish Helm charts
|
||||
uses: stefanprodan/helm-gh-pages@v1.5.0
|
||||
with:
|
||||
token: ${{ steps.get-app-token.outputs.token }}
|
||||
charts_dir: charts
|
||||
target_dir: charts
|
||||
index_dir: .
|
Loading…
Add table
Add a link
Reference in a new issue