44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Validate Cilium configuration
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- values.yaml
|
|
- hubble-pki.yaml
|
|
- cilium-alerts.yaml
|
|
- install.sh
|
|
- render.sh
|
|
- test.sh
|
|
- .gitea/workflows/validate.yml
|
|
pull_request:
|
|
paths:
|
|
- values.yaml
|
|
- hubble-pki.yaml
|
|
- cilium-alerts.yaml
|
|
- install.sh
|
|
- render.sh
|
|
- test.sh
|
|
- .gitea/workflows/validate.yml
|
|
|
|
env:
|
|
CILIUM_VERSION: 1.20.0
|
|
HELM_VERSION: v4.2.2
|
|
|
|
jobs:
|
|
validate:
|
|
name: Render and validate
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@v4
|
|
- name: Install pinned Helm
|
|
run: |
|
|
curl --fail --silent --show-error --location --output "${RUNNER_TEMP}/helm.tar.gz" \
|
|
"https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz"
|
|
tar --extract --gzip --file "${RUNNER_TEMP}/helm.tar.gz" \
|
|
--directory "${RUNNER_TEMP}" --strip-components=1 linux-amd64/helm
|
|
chmod 0700 "${RUNNER_TEMP}/helm"
|
|
echo "${RUNNER_TEMP}" >> "${GITHUB_PATH}"
|
|
- name: Validate scripts and Kubernetes resources
|
|
run: bash test.sh
|