Skip to content

Commit

Permalink
build: simplify packagecloud pushd/popd handling (missing)
Browse files Browse the repository at this point in the history
  • Loading branch information
natoscott committed Sep 6, 2023
1 parent 12198b5 commit 4efd24d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/ci/packagecloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ sudo gem install package_cloud

user=performancecopilot
repo=pcp
here=`pwd`

# Iterate each of the builds
for build in artifacts/build-*
Expand All @@ -34,11 +35,10 @@ $1 ~ /^centos/ { match($1, /c.*([1-9][0-9]*)/, m); printf "el/%s\n", m[1] }
[ -z "$dist" ] && continue

echo "Upload $dist packages"
pushd $build
cd $here/$build
for file in `find . -name \*.rpm -o -name \*.deb | grep -Ev 'tests|\.src\.'`
do
echo package_cloud push $user/$repo/$dist/pcp $file
package_cloud push $user/$repo/$dist/pcp $file
done
popd
done

0 comments on commit 4efd24d

Please sign in to comment.