From 79d010856ab302960702afd8922d5ab4fd69b9bb Mon Sep 17 00:00:00 2001 From: Arvind Iyengar Date: Thu, 24 Sep 2020 16:35:49 -0700 Subject: [PATCH] Use for loop to run CI per charts Grabbing changes from https://github.com/rancher/charts/pull/695 to fix CI. --- scripts/ci-wrapper | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/ci-wrapper b/scripts/ci-wrapper index e96aaf6be..a1749c6a6 100755 --- a/scripts/ci-wrapper +++ b/scripts/ci-wrapper @@ -11,6 +11,7 @@ git checkout origin/${1} ./sha256sum || true charts=$(./scripts/produce-sha256) -if [[ -n ${charts} ]]; then - echo $charts | xargs ./scripts/ci -fi \ No newline at end of file +# produce-sha256 produces sha256 and print out chart name that has changed, and only run CI against changed chart +for i in $(./scripts/produce-sha256); do + ./scripts/ci $i +done \ No newline at end of file