-
Notifications
You must be signed in to change notification settings - Fork 435
34 lines (31 loc) · 947 Bytes
/
analyze.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: analyze
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
istio:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get Istio current version
id: get-istio-version
run: |
ISTIO_VERSION=$(yq eval '.data.version' ./clusters/my-cluster/istio-version.yaml)
echo "ISTIO_VERSION=$ISTIO_VERSION" >> $GITHUB_ENV
- name: Get Istio CTL URL
id: get-istioctl
uses: istio/[email protected]
with:
version: ${{ env.ISTIO_VERSION }}
- name: Analyze manifests
run: |
istioctl analyze -A --use-kube=false \
--failure-threshold ERROR \
$(find . -not -path "*/.git*/*" -not -path "*/clusters/*" \
-not -name "*.patch.yaml" -not -name "kustomization.yaml" -name "*.yaml" -type f)