mirror of
https://github.com/suitenumerique/drive.git
synced 2026-09-30 13:35:14 +02:00
Add all files we need to start the project. Only the `src` repository is missing and will be added later by additional pull requests.
32 lines
801 B
YAML
32 lines
801 B
YAML
name: Helmfile lint
|
|
run-name: Helmfile lint
|
|
|
|
on:
|
|
gollum
|
|
# push:
|
|
# pull_request:
|
|
# branches:
|
|
# - 'main'
|
|
|
|
jobs:
|
|
helmfile-lint:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/helmfile/helmfile:latest
|
|
steps:
|
|
-
|
|
name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
-
|
|
name: Helmfile lint
|
|
shell: bash
|
|
run: |
|
|
set -e
|
|
HELMFILE=src/helm/helmfile.yaml
|
|
environments=$(awk '/environments:/ {flag=1; next} flag && NF {print} !NF {flag=0}' "$HELMFILE" | grep -E '^[[:space:]]{2}[a-zA-Z]+' | sed 's/^[[:space:]]*//;s/:.*//')
|
|
for env in $environments; do
|
|
echo "################### $env lint ###################"
|
|
helmfile -e $env -f $HELMFILE lint || exit 1
|
|
echo -e "\n"
|
|
done
|