Skip to content

Commit

Permalink
kubevirtci: Introduce bump script (#234)
Browse files Browse the repository at this point in the history
Built such that automation can use it:
In case fatal happens return error code.
In case all is good, determine if there was a change
according non empty stdout.

Signed-off-by: Or Shoval <[email protected]>
  • Loading branch information
oshoval authored Jul 19, 2022
1 parent 0cc86e5 commit 71992d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hack/bump-kubevirtci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash -e

KUBEVIRTCI_TAG=$(curl -L -Ss https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirtci/latest)
[[ ${#KUBEVIRTCI_TAG} != "18" ]] && echo "error getting KUBEVIRTCI_TAG" && exit 1

sed -i "s/export KUBEVIRTCI_TAG=.*/export KUBEVIRTCI_TAG=${KUBEVIRTCI_TAG}/g" cluster/cluster.sh

git --no-pager diff cluster/cluster.sh | grep KUBEVIRTCI_TAG || true

0 comments on commit 71992d9

Please sign in to comment.