The sample-docker-dind-sidecar
sub-directory contains an event-listener-dind
EventListener definition that you can include in your Tekton pipeline configuration to run an example usage of the icr-execute-in-dind
and icr-check-va-scan
.
It also contains a dind-no-resources
EventListener definition which is the providing the same example but without the needs to define PipelineResources for image as it uses the task's parameter image-url
to provide the information.
It also contains a dind-no-resources
EventListener definition which is the providing the same example but without the needs to define PipelineResources for image as it uses the task's parameter image-url
to provide the information.
Note: this sample also relies on the clone-repo task to clone the application to containerize.
-
Create or update a toolchain to include:
- the git repository that you want to clone, which can be private
- the repository containing this Tekton task
- a Tekton pipeline definition
-
Add the definitions:
- for the
git-clone-repo
(git
path) - for this task and the sample (
container-registry
andcontainer-registry/sample-docker-dind-sidecar
paths)
- for the
-
Add the environment properties:
apikey
to provide an API key used for the ibmcloud login/accessrepository
to indicate the git repository url to clone (correspoding to the one integrated in the toolchain)image-url
to indicate the URL of the image to push to the IBM Cloud Container Registry
-
Create a manual trigger to start the sample listener
-
Run the pipeline
-
Verify that the image was build and pushed by looking at the pipeline run execution log: