Skip to content

Commit

Permalink
Skip non-image files when loading docker images in local_e2e_tests (#…
Browse files Browse the repository at this point in the history
…5465)

When the "kubeapps general" workflow fails in the `local_e2e_tests` step, it is possible
that the corresponding `e2e_tests_[GROUP]_report` artifact is generated and uploaded
to the GHA workspace for the workflow, and in the following attempt after retrying the failed
jobs, it tries to 'docker load' those artifacts that aren't docker images. With the changes in 
this commit, we are filtering those non-image artifacts.

Signed-off-by: Jesús Benito Calzada <bjesus@vmware.com>
  • Loading branch information
beni0888 committed Oct 17, 2022
1 parent ccb9080 commit 6386930
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/kubeapps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ jobs:
source ./script/lib/liblog.sh
for path in /tmp/images/*; do
image=$(basename "$path")
if [[ "${image}" != *"-image" ]]; then
echo "::notice ::Skipping artifact ${image}, it's not a docker image"
continue
fi
info "Loading image ${image}"
kind load image-archive "${path}/${image}.tar" --name kubeapps-ci;
done
Expand Down

0 comments on commit 6386930

Please sign in to comment.