From d4840294d3301c88652dbd7f859762e3a9347b33 Mon Sep 17 00:00:00 2001 From: Azfaar Qureshi Date: Mon, 11 Jan 2021 11:15:13 -0500 Subject: [PATCH] GitHub Actions - fixing flaky build package job (#2324) * fixing flaky deb package job * using waitgroup instead of sleep * moving wait in the same line as docker cp Co-authored-by: Azfaar Qureshi --- internal/buildscripts/packaging/fpm/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/buildscripts/packaging/fpm/common.sh b/internal/buildscripts/packaging/fpm/common.sh index c87e6f454f59..a1fd2e6ee18f 100755 --- a/internal/buildscripts/packaging/fpm/common.sh +++ b/internal/buildscripts/packaging/fpm/common.sh @@ -38,7 +38,7 @@ install_pkg() { local pkg_base=$( basename "$pkg_path" ) echo "Installing $pkg_base ..." - docker cp "$pkg_path" $image_name:/tmp/$pkg_base + docker cp "$pkg_path" $image_name:/tmp/$pkg_base & wait $! if [[ "${pkg_base##*.}" = "deb" ]]; then $docker_exec dpkg -i /tmp/$pkg_base else