You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Container Structure Tests
v1.1.0
GitHub Action that leverages Google´s Container Structure Tests to run unit tests on your Docker images.
steps:
uses: brpaz/structure-tests-action@v1
with:
image: myimage:latest
configFile: structure-tests.yaml
image
Required The image name to test
configFile
Required The path to the structure tests configuration file. Defaults to structure-tests.yaml
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
How can I use an envrionment variable as input
Using Environment variables directly as input arguments is not supported by GitHub Actions. You can define an intermidiate step that outputs the desired value and use that value as the input
- name: Get Image name
id: image_name
run: echo "##[set-output name=image;]$(echo $TEST_IMAGE_NAME)"
And then use it as input:
image: ${{steps.image_name.outputs.image}}
👤 Bruno Paz
- authorWebsite: https://github.com/brpaz
- Github: @brpaz
Copyright © 2019 Bruno Paz.
This project is MIT licensed.