Setup container-structure-test for use in your GitHub Action workflows.
image: the image (including :tag) to run container structure test against (e.g.my-image:latest)config: the path (relative to the root of the repository) to the test config (e.g.tests.yaml)
name: "Test Dockerfile structure"on: pull_requestjobs:
dockerfile-test:
runs-on: ubuntu-lateststeps:
- name: checkout sourceuses: actions/checkout@main
- name: run structure testsuses: plexsystems/container-structure-test-action@v0.1.0with:
image: my-image:latestconfig: tests.yaml