Skip to content

Commit

Permalink
GitHub Actions - fixing flaky build package job (#2324)
Browse files Browse the repository at this point in the history
* fixing flaky deb package job

* using waitgroup instead of sleep

* moving wait in the same line as docker cp

Co-authored-by: Azfaar Qureshi <[email protected]>
  • Loading branch information
AzfaarQureshi and Azfaar Qureshi authored Jan 11, 2021
1 parent 59c7797 commit d484029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/buildscripts/packaging/fpm/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d484029

Please sign in to comment.