Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Container Structure Test Action

GitHub Action that enables automated testing of Containers with Container Structure Tests in your CI/CD pipeline.1

This action will run on Linux runners on the arm64 and amd64 platforms. It also enables you to test multi-arch images by specifying the platform.

Inputs

  • image: The Docker image to test (e.g., my-image:latest).
  • config: The path (relative to the root of the repository) to the test config (e.g., tests.yaml).
  • platform: Platform of the image being tested (e.g., linux/amd64 or linux/arm64). Default is linux/amd64.

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: jmcombs/container-structure-test-action@main
        with:
          image: my-image:latest
          config: tests.yaml
          platform: linux/amd64

Footnotes

  1. This project is a fork of container-structure-test-action by Plex Systems.

About

GitHub Action that enables automated testing of Containers in your CI/CD pipeline. 🚀

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages