♻️(ci) merge helmfile-lint and release chart workflows

Merge both flows related to the Helmfile.
Also, make sure lint job is run before the release one.
This commit is contained in:
lebaudantoine
2025-01-03 19:32:48 +01:00
committed by rouja
parent 25a4e2dfc6
commit 3e4a7058d2
2 changed files with 19 additions and 25 deletions

View File

@@ -1,22 +0,0 @@
name: Helmfile lint
run-name: Helmfile lint
on:
pull_request:
branches:
- 'main'
jobs:
helmfile-lint:
runs-on: ubuntu-latest
container:
image: ghcr.io/helmfile/helmfile:latest
steps:
-
uses: numerique-gouv/action-helmfile-lint@main
with:
app-id: ${{ secrets.APP_ID }}
age-key: ${{ secrets.SOPS_PRIVATE }}
private-key: ${{ secrets.PRIVATE_KEY }}
helmfile-src: "src/helm"
repositories: "meet,secrets"

View File

@@ -2,14 +2,30 @@ name: Release Chart
run-name: Release Chart
on:
pull_request:
branches:
- 'main'
push:
paths:
- src/helm/meet/**
- ./src/helm/meet/**
jobs:
lint-helmfile:
runs-on: ubuntu-latest
container:
image: ghcr.io/helmfile/helmfile:latest
steps:
- uses: numerique-gouv/action-helmfile-lint@main
with:
app-id: ${{ secrets.APP_ID }}
age-key: ${{ secrets.SOPS_PRIVATE }}
private-key: ${{ secrets.PRIVATE_KEY }}
helmfile-src: "src/helm"
repositories: "meet,secrets"
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
needs: helmfile-lint
if: github.event_name == 'push'
permissions:
contents: write
runs-on: ubuntu-latest