Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
daimg authored Nov 8, 2021
1 parent 7fbe22d commit 126a893
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Helm

on:
push:
branches:
- main
- develop

jobs:

changes:
runs-on: ubuntu-latest
if: |
(github.repository == 'bfenetworks/ingress-bfe')
outputs:
docs: ${{ steps.filter.outputs.docs }}
charts: ${{ steps.filter.outputs.charts }}

steps:

- name: Checkout
uses: actions/checkout@v2

- uses: dorny/paths-filter@v2
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
filters: |
charts:
- 'charts/bfe-ingress-controller/Chart.yaml'
- 'charts/bfe-ingress-controller/**/*'
chart:
name: Release Chart
runs-on: ubuntu-latest
needs:
- changes
if: |
(github.repository == 'bfenetworks/ingress-bfe') &&
(needs.changes.outputs.charts == 'true')
steps:

- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
shell: bash
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
env:
CR_TOKEN: "${{ secrets.PERSONAL_TOKEN }}"
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"
with:
charts_dir: charts

0 comments on commit 126a893

Please sign in to comment.