Update http2/grpc packages. #3
This file contains 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: Image-check | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- 'v*' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.19.9' | |
- name: Check hard-coded image names in template files | |
run: | | |
lines=$(grep -r "image: " ./config/internal/ | egrep -v "{{[a-zA-Z.]+}}" | grep -v sample | wc -l) | |
if [ "$lines" -gt "0" ]; then exit 1; else exit 0; fi | |
- name: Check Operator resources | |
run: | | |
lines=$(grep -r "image: " ./config/manager/ | grep -oP -v "\\$\([[:upper:]_]+\)" | wc -l) | |
if [ "$lines" -gt "0" ]; then exit 1; else exit 0; fi | |
- name: Check non-sha image parameters | |
run: | | |
lines=$(egrep -v "IMAGES_[A-Z]+=[a-z0-9./-]+@sha256" ./config/base/params.env | wc -l) | |
if [ "$lines" -gt "0" ]; then exit 1; else exit 0; fi |