summaryrefslogtreecommitdiff
path: root/hack/get_ci_vm.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-18 21:54:39 +0100
committerGitHub <noreply@github.com>2019-01-18 21:54:39 +0100
commit0d4bfb013108f836dbc6369d38b01b6e92d6141d (patch)
tree42538fecc8dd6f09f14bc0bb2937ebb3aef089d4 /hack/get_ci_vm.sh
parentf897cccbdeb2c1e92b9a1b866128a67d5ccb957d (diff)
parentd0876282a42aeb93322fe80cae79c2d160bff350 (diff)
downloadpodman-0d4bfb013108f836dbc6369d38b01b6e92d6141d.tar.gz
podman-0d4bfb013108f836dbc6369d38b01b6e92d6141d.tar.bz2
podman-0d4bfb013108f836dbc6369d38b01b6e92d6141d.zip
Merge pull request #2176 from cevich/centralize_image_names
Cirrus: Consolidate VM image names in once place
Diffstat (limited to 'hack/get_ci_vm.sh')
-rwxr-xr-xhack/get_ci_vm.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/hack/get_ci_vm.sh b/hack/get_ci_vm.sh
index e1d8e42b9..b058b4273 100755
--- a/hack/get_ci_vm.sh
+++ b/hack/get_ci_vm.sh
@@ -54,15 +54,19 @@ delvm() {
showrun $CLEANUP_CMD # prompts for Yes/No
}
-show_usage(){
+image_hints() {
+ egrep '[[:space:]]+[[:alnum:]].+_CACHE_IMAGE_NAME:[[:space:]+"[[:print:]]+"' \
+ "$LIBPODROOT/.cirrus.yml" | cut -d: -f 2 | tr -d '"[:blank:]' | \
+ grep -v 'notready' | grep -v 'image-builder' | sort -u
+}
+
+show_usage() {
echo -e "\n${RED}ERROR: $1${NOR}"
echo -e "${YEL}Usage: $(basename $0) [-s | -p] <image_name>${NOR}\n"
if [[ -r ".cirrus.yml" ]]
then
- egrep 'image_name' ".cirrus.yml" | grep -v '#' | cut -d: -f 2 | \
- tr -d [:blank:] | sort -u > "$TEMPFILE"
echo -e "${YEL}Some possible image_name values (from .cirrus.yml):${NOR}"
- cat $TEMPFILE
+ image_hints
echo ""
fi
exit 1