File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # This command builds test-operator index and pushes it to quay.io. Podman
4+ # should be authenticated against quay.io prior to the execution of this
5+ # command.
6+ #
7+ # USER=quay-nickname TAG=xyz ./hack/build_index.sh
8+ #
9+
10+ set -x
11+
12+ USER=${USER:- $USERNAME }
13+ REGISTRY=${REGISTRY:- quay.io}
14+ IMAGE_NAME=${IMAGE_NAME:- test-operator}
15+ BUNDLE_IMAGE_NAME=${BUNDLE_IMAGE_NAME:- test-operator-bundle}
16+ INDEX_IMAGE_NAME=${INDEX_IMAGE_NAME:- test-operator-index}
17+ TAG=${TAG:- latest}
18+
19+ make docker-build IMG=${REGISTRY} /${USER} /${IMAGE_NAME} :${TAG}
20+ make docker-push IMG=${REGISTRY} /${USER} /${IMAGE_NAME} :${TAG}
21+
22+ make bundle IMG=${REGISTRY} /${USER} /${IMAGE_NAME} :${TAG}
23+ make bundle-build BUNDLE_IMG=${REGISTRY} /${USER} /${BUNDLE_IMAGE_NAME} :${TAG}
24+ make bundle-push BUNDLE_IMG=${REGISTRY} /${USER} /${BUNDLE_IMAGE_NAME} :${TAG}
25+
26+ export BUNDLE_IMG=${REGISTRY} /${USER} /${BUNDLE_IMAGE_NAME} :${TAG}
27+ make catalog-build CATALOG_IMG=${REGISTRY} /${USER} /${INDEX_IMAGE_NAME} :${TAG}
28+ make catalog-push CATALOG_IMG=${REGISTRY} /${USER} /${INDEX_IMAGE_NAME} :${TAG}
You can’t perform that action at this time.
0 commit comments