Skip to content

Commit 27a2d79

Browse files
committedSep 4, 2019
Add default release image to get-image-commit
1 parent fb37173 commit 27a2d79

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

Diff for: ‎get-image-commit.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
set -eu
44

5-
RELEASE_IMAGE=$1
6-
CLUSTER_IMAGE_NAME=$2
5+
if [ "$#" -eq 1 ]; then
6+
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
712

813
podman pull "$RELEASE_IMAGE"
914

@@ -14,3 +19,4 @@ podman pull "$CLUSTER_IMAGE"
1419
echo
1520
echo "$CLUSTER_IMAGE_NAME commit in $RELEASE_IMAGE:"
1621
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

Comments
 (0)
Please sign in to comment.