update workflows

This commit is contained in:
Muneeb Aijaz
2025-01-10 20:25:48 +05:00
parent 565a3d6916
commit 0e4db821d9
2 changed files with 20 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ env:
jobs:
helm-validation:
helm-chart-validation:
permissions:
contents: read
@@ -42,6 +42,22 @@ jobs:
with:
charts: deployments/kubernetes/chart/reloader
helm-version-validation:
needs: helm-chart-validation
permissions:
contents: read
runs-on: ubuntu-latest
name: Helm Chart Validation
if: ${{ contains(github.event.pull_request.labels.*.name, 'release/helm-chart' }}
- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.sha}}
fetch-depth: 0
- name: Add Stakater Helm Repo
run: |
helm repo add stakater https://stakater.github.io/stakater-charts

View File

@@ -15,14 +15,14 @@ env:
REGISTRY: ghcr.io
jobs:
build:
verify-and-push-helm-chart:
permissions:
contents: read
packages: write # to push artifacts to `ghcr.io`
name: Build
if: github.event.pull_request.merged == true
name: Verify and Push Helm Chart
if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'release/helm-chart')) }}
runs-on: ubuntu-latest
steps: