Add github action for building images (#7636)
- Add github action test-image-build - Filters the images folder and checks for changes - If the changes are done then the make build would be performed
This commit is contained in:
parent
53fab99a86
commit
b3389a1b6f
1 changed files with 59 additions and 2 deletions
57
.github/workflows/ci.yaml
vendored
57
.github/workflows/ci.yaml
vendored
|
@ -220,3 +220,60 @@ jobs:
|
|||
run: |
|
||||
kind get kubeconfig > $HOME/.kube/kind-config-kind
|
||||
make kind-e2e-test
|
||||
|
||||
test-image-build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
PLATFORMS: linux/amd64
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter-images
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
filters: |
|
||||
custom-error-pages:
|
||||
- 'images/custom-error-pages/**'
|
||||
cfssl:
|
||||
- 'images/cfssl/**'
|
||||
fastcgi-helloserver:
|
||||
- 'images/fastcgi-helloserver/**'
|
||||
echo:
|
||||
- 'images/echo/**'
|
||||
go-grpc-greeter-server:
|
||||
- 'images/go-grpc-greeter-server/**'
|
||||
httpbin:
|
||||
- 'images/httpbin/**'
|
||||
kube-webhook-certgen:
|
||||
- 'images/kube-webhook-certgen/**'
|
||||
|
||||
- name: custom-error-pages image build
|
||||
if: ${{ steps.filter-images.outputs.custom-error-pages == 'true' }}
|
||||
run: |
|
||||
cd images/custom-error-pages && make build
|
||||
- name: cfssl image build
|
||||
if: ${{ steps.filter-images.outputs.cfssl == 'true' }}
|
||||
run: |
|
||||
cd images/cfssl && make build
|
||||
- name: fastcgi-helloserver
|
||||
if: ${{ steps.filter-images.outputs.fastcgi-helloserver == 'true' }}
|
||||
run: |
|
||||
cd images/fastcgi-helloserver && make build
|
||||
- name: echo image build
|
||||
if: ${{ steps.filter-images.outputs.echo == 'true' }}
|
||||
run: |
|
||||
cd images/echo && make build
|
||||
- name: go-grpc-greeter-server image build
|
||||
if: ${{ steps.filter-images.outputs.go-grpc-greeter-server == 'true' }}
|
||||
run: |
|
||||
cd images/go-grpc-greeter-server && make build
|
||||
- name: httpbin image build
|
||||
if: ${{ steps.filter-images.outputs.httpbin == 'true' }}
|
||||
run: |
|
||||
cd images/httpbin && make build
|
||||
- name: kube-webhook-certgen image build
|
||||
if: ${{ steps.filter-images.outputs.kube-webhook-certgen == 'true' }}
|
||||
run: |
|
||||
cd images/kube-webhook-certgen && make build
|
Loading…
Reference in a new issue