Skip to content

Update ghcr.io/redhat-cop/github-actions/kyverno-cli:latest Docker di… #65

Update ghcr.io/redhat-cop/github-actions/kyverno-cli:latest Docker di…

Update ghcr.io/redhat-cop/github-actions/kyverno-cli:latest Docker di… #65

Workflow file for this run

name: Test kyverno-cli
on:
push:
paths:
- .github/workflows/kyverno-cli.yaml
- kyverno-cli/**
pull_request:
paths:
- .github/workflows/kyverno-cli.yaml
- kyverno-cli/**
jobs:
kyverno-cli:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Switch the action to use the Dockerfile_build
run: |
mv kyverno-cli/Dockerfile kyverno-cli/Dockerfile_runnable
mv kyverno-cli/Dockerfile_build kyverno-cli/Dockerfile
- name: kyverno-cli - tests
uses: ./kyverno-cli
with:
tests: kyverno-cli/_test/kyverno.sh
- name: kyverno-cli - raw
uses: ./kyverno-cli
with:
raw: kyverno apply kyverno-cli/_test/policy.yaml --resource kyverno-cli/_test/namespace.yaml