Add script to generate files after crd.yml.j2 changes

This commit is contained in:
Christian M. Adams
2021-06-09 11:06:23 -04:00
parent f1b1293f5f
commit a30f3f658e
2 changed files with 19 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/bash
## This script will build 3 images awx-{operator,bundle,catalog}
## This script will generate a bundle manifest, build 3 images awx-{operator,bundle,catalog}
## and push to the $REGISTRY specified.
##
## The goal is provide an quick way to build a test image.
@@ -78,6 +78,7 @@ build_operator_image() {
build_bundle_image() {
echo "Building and pushing $BUNDLE_IMAGE image"
operator-sdk generate bundle --operator-name awx-operator --version $TAG
$POD_MANAGER build . -f bundle.Dockerfile -t $REGISTRY/$BUNDLE_IMAGE:$TAG
$POD_MANAGER push $REGISTRY/$BUNDLE_IMAGE:$TAG
}