Development of the Python script doesn't demand any sophisticated strategy. However, before adding the script to release branch, in order to test them they must run within the pipeline.
- Install Buildah
- Setup operator-pipelines
- If you are adding a new script- don't forget to add the entrypoint to setup.py
- Build the image containing the script via Buildah
buildah bud
- Push the image to registry, eg. Quay.io.
buildah push <image signature- output of build step> <path in registry>
This step may require login, eg.
buildah login quay.io
-
In operator-pipelines, change the base image of script that was changed, to the one pushed in the previous step.
-
Run the pipeline and test if the results are as expected.