♻️(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:
22
.github/workflows/helmfile-linter.yml
vendored
22
.github/workflows/helmfile-linter.yml
vendored
@@ -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"
|
|
||||||
22
.github/workflows/release-helm-chart.yaml
vendored
22
.github/workflows/release-helm-chart.yaml
vendored
@@ -2,14 +2,30 @@ name: Release Chart
|
|||||||
run-name: Release Chart
|
run-name: Release Chart
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- src/helm/meet/**
|
- ./src/helm/meet/**
|
||||||
|
|
||||||
jobs:
|
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:
|
release:
|
||||||
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
|
needs: helmfile-lint
|
||||||
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
|
if: github.event_name == 'push'
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user