chore(deps): update ghcr.io/stefanprodan/podinfo docker tag to v6.9.2 #79
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flagger Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [main] | |
paths: | |
- "flagger/**" | |
- ".github/workflows/flagger*" | |
jobs: | |
check-istio: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get Istioctl | |
working-directory: flagger | |
run: | | |
ISTIO_VERSION=$(yq eval '. | select(.kind == "Deployment") | .spec.template.spec.containers[0].image | split(":") | .[1]' ./istio/operator/manifests.yaml) | |
echo "ISTIO_VERSION=$ISTIO_VERSION" >> $GITHUB_ENV | |
# downloadIstio will now retrieve the currently installed binary, instead of latest | |
echo "Downloading Istio (v${ISTIO_VERSION})" | |
curl -sL https://istio.io/downloadIstio | ISTIO_VERSION=$ISTIO_VERSION sh - | |
- name: Istioctl Analyze | |
working-directory: flagger | |
run: | | |
# this command will exit(1) if an error is found in any yaml | |
# istio/operator/manifests.yaml contains an empty yaml doc, which | |
# throws off analyze, so pass it in separately | |
MANIFESTS=$(yq eval '. | select(. | has("kind"))' ./istio/operator/manifests.yaml) | |
ISTIO_VERSION=${{ env.ISTIO_VERSION }} | |
./istio-${ISTIO_VERSION}/bin/istioctl analyze -A --use-kube=false \ | |
--failure-threshold ERROR $(find . -not -path "*/istio-$ISTIO_VERSION/*" \ | |
-not -path "*/clusters/*" -name "*.yaml" \ | |
-not -path "*/istio/operator/manifests.yaml" -type f) -<<<"$MANIFESTS" |