mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-04-29 22:16:35 +00:00
this commit remote helm release workflow trigger on create which triggers duplicate event as push fixes: #459
37 lines
895 B
YAML
37 lines
895 B
YAML
name: Helm Chart
|
|
|
|
on:
|
|
push:
|
|
branches: [ "*" ]
|
|
tags: [ "helm-v*" ]
|
|
pull_request:
|
|
branches: [ "*" ]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: azure/setup-helm@v1
|
|
with:
|
|
version: 3.3.4
|
|
- name: Linting Chart
|
|
run: helm lint ./charts/capsule
|
|
release:
|
|
if: startsWith(github.ref, 'refs/tags/helm-v')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Publish Helm chart
|
|
uses: stefanprodan/helm-gh-pages@master
|
|
with:
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
charts_dir: charts
|
|
charts_url: https://clastix.github.io/charts
|
|
owner: clastix
|
|
repository: charts
|
|
branch: gh-pages
|
|
target_dir: .
|
|
commit_username: prometherion
|
|
commit_email: dario@tranchitella.eu
|