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_request
jobs:
dockerfile-test:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@main
- name: run structure tests
uses: plexsystems/container-structure-test-action@v0.1.0
with:
image: my-image:latest
config: tests.yaml