We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb37173 commit 27a2d79Copy full SHA for 27a2d79
get-image-commit.sh
@@ -2,8 +2,13 @@
2
3
set -eu
4
5
-RELEASE_IMAGE=$1
6
-CLUSTER_IMAGE_NAME=$2
+if [ "$#" -eq 1 ]; then
+ RELEASE_IMAGE="registry.svc.ci.openshift.org/origin/release:4.2"
7
+ CLUSTER_IMAGE_NAME="$1"
8
+else
9
+ RELEASE_IMAGE=$1
10
+ CLUSTER_IMAGE_NAME=$2
11
+fi
12
13
podman pull "$RELEASE_IMAGE"
14
@@ -14,3 +19,4 @@ podman pull "$CLUSTER_IMAGE"
19
echo
15
20
echo "$CLUSTER_IMAGE_NAME commit in $RELEASE_IMAGE:"
16
21
echo "$(podman inspect -f '{{ index .Labels "vcs-url" }}' $CLUSTER_IMAGE)/commit/$(podman inspect -f '{{ index .Labels "vcs-ref" }}' $CLUSTER_IMAGE)"
22
+echo "$(podman inspect -f '{{ index .Labels "vcs-url" }}' $CLUSTER_IMAGE)/commits/$(podman inspect -f '{{ index .Labels "vcs-ref" }}' $CLUSTER_IMAGE)"
0 commit comments