Skip to content

Commit

Permalink
Fix bug and add file cleanup step
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck authored and github-actions[bot] committed Feb 18, 2025
1 parent ea4d34d commit f296334
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/check-image-binaries
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ verifyKuberlrKubectl() {
# Pull and extract files
CONTAINER_ID=$(docker create --platform linux/$ARCH "$IMAGE")
docker cp "$CONTAINER_ID:/bin/kuberlr" "$ARCH_DIR/kuberlr" 2>&1 > /dev/null || echo "kuberlr not found in $IMAGE for $ARCH"
KUBECTL_LIST=$(docker run --rm --entrypoint sh rancher/kuberlr-kubectl:v4.0.1 -c "ls /usr/bin | grep kube")
KUBECTL_LIST=$(docker run --rm --entrypoint sh "$IMAGE" -c "ls /usr/bin | grep kube")
for KUBECTL_VER in $KUBECTL_LIST; do
docker cp "$CONTAINER_ID:/usr/bin/$KUBECTL_VER" "$ARCH_DIR/$KUBECTL_VER" 2>&1 > /dev/null || echo "kubectl ($KUBECTL_VER) not found in $IMAGE for $ARCH"
done
Expand Down Expand Up @@ -100,5 +100,6 @@ else
verifyKuberlrKubectl;
fi

rm -rf "$WORKDIR"

echo "All architectures processed. Check $WORKDIR for results."
echo "All architectures processed."

0 comments on commit f296334

Please sign in to comment.