Last active
December 21, 2022 10:09
-
-
Save g3rhard/2d6f6d85bef57d9a4c1a5601127505f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 "$GITHUB_ACTOR@users.noreply.github.com" | |
- 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/chart-releaser-action@v1.4.1 | |
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