The point of this image is just to be a short hand so all our Terraform modules repositories don't need to have the same boiler plate stuff in and we can centralise rules and test steps in one place rather than many.
Add this to a .drone.yml in the root of the repo:
pipeline:
testsuite:
image: quay.io/ukhomeofficedigital/dq-tf-testsuite:latest
privileged: true
commands: run
Trust the repo in the drone ui
To run locally with drone exec you'll need to add --repo.trusted
so:
drone exec --repo.trusted
Right now its relatively simple and will only test the following things in order (see run.sh for details):