Skip to content

Instantly share code, notes, and snippets.

@bentito
Created September 28, 2020 17:18
Show Gist options
  • Save bentito/59085e76233a48bd02e933654a69e76f to your computer and use it in GitHub Desktop.
Save bentito/59085e76233a48bd02e933654a69e76f to your computer and use it in GitHub Desktop.
#!/bin/bash -ex
# This file is required in the cpaas operator build flow
# reference: https://gitlab.sat.engineering.redhat.com/cpaas/documentation/-/blob/building-operators/schema/product/builds/brew_container_operator.adoc#user-content-render-templates
echo "!!! render_templates !!!"
#echo "Printing all envitronment variables:"
#echo "--- BEGIN ---"
#env
#echo "--- END ---"
bundle_name=$(basename `pwd`)
if [ ${bundle_name} == "cluster-logging-operator-bundle" ]
then
./cluster_logging_operator_csv_generator.sh
./cluster_logging_operator_dockerfile_generator.sh
elif [ ${bundle_name} == "elasticsearch-operator-bundle" ]
then
./elasticsearch_operator_csv_generator.sh
./elasticsearch_operator_dockerfile_generator.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment