Skip to content
anchor

GitHub Action

Container Structure Test Action

v0.3.0 Latest version

Container Structure Test Action

anchor

Container Structure Test Action

Setup Container Structure Test in your GitHub workflows

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Container Structure Test Action

uses: plexsystems/[email protected]

Learn more about this action in plexsystems/container-structure-test-action

Choose a version

container-structure-test-action

Setup container-structure-test for use in your GitHub Action workflows.

Required inputs

  • 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)

Example

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/[email protected]
      with:
        image: my-image:latest
        config: tests.yaml