Update registry.access.redhat.com/ubi9/python-39 Docker tag to v1-192 #315
Workflow file for this run
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: Test kyverno-cli | |
on: | |
push: | |
paths: | |
- .github/workflows/kyverno-cli.yaml | |
- kyverno-cli/** | |
pull_request: | |
paths: | |
- .github/workflows/kyverno-cli.yaml | |
- kyverno-cli/** | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
kyverno-cli: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0 | |
with: | |
dockerfile: kyverno-cli/Dockerfile_build | |
ignore: DL3041 # https://github.com/hadolint/hadolint/wiki/DL3041 | |
- 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 |