Skip to content

Commit

Permalink
Fix cli linux binary copy
Browse files Browse the repository at this point in the history
Summary:
The `linux_binary` path is relative not `absolute` which breaks the cp.
This fixes the same.

Test Plan: Relase cli on jenkins

Reviewers: michelle

Reviewed By: michelle

Signed-off-by: Vihang Mehta <[email protected]>

Differential Revision: https://phab.corp.pixielabs.ai/D11719

GitOrigin-RevId: adb23c5
  • Loading branch information
vihangm authored and copybaranaut committed Jun 29, 2022
1 parent ccc99d4 commit 3f9bc4b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ci/cli_build_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ write_artifacts_to_gh() {
gh release create "${TAG_NAME}" --repo=pixie-io/pixie --notes "Pixie CLI Release"

tmp_dir="$(mktemp -d)"

cp "${linux_binary}" "${tmp_dir}/cli_linux_amd64"
cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.deb" "${tmp_dir}/pixie-px.${linux_arch}.deb"
cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.rpm" "${tmp_dir}/pixie-px.${linux_arch}.rpm"

pushd "${tmp_dir}"
cp "${linux_binary}" "cli_linux_amd64"
gpg --no-tty --batch --yes --local-user "${BUILDBOT_GPG_KEY_ID}" --armor --detach-sign "cli_linux_amd64"
cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.deb" "pixie-px.${linux_arch}.deb"
gpg --no-tty --batch --yes --local-user "${BUILDBOT_GPG_KEY_ID}" --armor --detach-sign "pixie-px.${linux_arch}.deb"
cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.rpm" "pixie-px.${linux_arch}.rpm"
gpg --no-tty --batch --yes --local-user "${BUILDBOT_GPG_KEY_ID}" --armor --detach-sign "pixie-px.${linux_arch}.rpm"

gh release upload "${TAG_NAME}" --repo=pixie-io/pixie "cli_linux_amd64" "cli_linux_amd64.asc" "pixie-px.${linux_arch}.deb" "pixie-px.${linux_arch}.deb.asc" "pixie-px.${linux_arch}.rpm" "pixie-px.${linux_arch}.rpm.asc"
Expand Down

0 comments on commit 3f9bc4b

Please sign in to comment.