Skip to content

Instantly share code, notes, and snippets.

@g3rhard
Last active December 21, 2022 10:09
Show Gist options
  • Save g3rhard/2d6f6d85bef57d9a4c1a5601127505f1 to your computer and use it in GitHub Desktop.
Save g3rhard/2d6f6d85bef57d9a4c1a5601127505f1 to your computer and use it in GitHub Desktop.
---
name: Helm
on:
push:
branches: [ production ]
paths-ignore:
- 'README.md'
- 'helm-charts/**/README.md'
- 'LICENSE'
pull_request:
branches: [ production ]
paths-ignore:
- 'README.md'
- 'helm-charts/**/README.md'
- 'LICENSE'
workflow_dispatch:
env:
DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }}
jobs:
helm-charts:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Run Datree Policy Check
uses: datreeio/action-datree@main
with:
path: 'charts/php-sample-app'
cliArguments: '--no-record'
isHelmChart: true
- name: Helm Chart Releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Send Discord notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
title: "${{ github.repository }}: ${{ github.workflow }}"
webhook: ${{ secrets.DISCORD_WEBHOOK }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment