forked from openshift/release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomet.sh
executable file
·26 lines (21 loc) · 894 Bytes
/
comet.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Helper to quickly generate the correct fields for a comet request at
# https://comet.engineering.redhat.com, based on https://mojo.redhat.com/docs/DOC-1168290
if [[ "${1-}" == "" ]]; then
echo "error: Must pass the name of your image as defined in a ci-operator config" 1>&2
exit 1
fi
if [[ "${2-}" == "" ]]; then
echo "error: Must pass the name of your image and the release version (major.minor)" 1>&2
exit 1
fi
image_name="${1:-insights-operator}"
version="${2:-4.2}"
echo "Image Build Type: Layered"
echo "Product Name: Red Hat OpenShift Container Platform"
echo "Product Version: ${version}"
echo "Dist-Git Repo: containers/ose-${image_name}"
echo "Dist-Git Branches: rhaos-${version}-rhel-7"
echo "Brew Package Name: ose-${image_name}-container"
echo
echo "Note that COMET forms automatically suggest containers/ and -container prefix and suffixes"