Skip to content

Commit

Permalink
fix package type var (#2834)
Browse files Browse the repository at this point in the history
* fix package type var

* revert using of release-manager-snapshot and release-manager-release because of the run_with_go_ver script is failing because of the gvm checking and installin with permission issue
  • Loading branch information
sharbuz authored Jul 26, 2023
1 parent 0d83966 commit 0f8ca1c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .buildkite/scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ source .buildkite/scripts/common.sh

VERSION=$(awk '/const DefaultVersion/{print $NF}' version/version.go | tr -d '"')
PLATFORM_TYPE=$(uname -m)
MATRIX_TYPE="$1"
TYPE="$1"
INFRA_REPO="https://github.com/repos/elastic/infra/contents"

if [[ ${BUILDKITE_BRANCH} == "main" && ${MATRIX_TYPE} == "staging" ]]; then
if [[ ${BUILDKITE_BRANCH} == "main" && ${TYPE} == "staging" ]]; then
echo "INFO: staging artifacts for the main branch are not required."
exit 0
fi
Expand All @@ -27,15 +27,16 @@ with_mage

case "${TYPE}" in
"snapshot")
make release-manager-snapshot
export SNAPSHOT=true
make release
;;
"staging")
make release-manager-release
make release
;;
*)
echo "The option is unsupported yet"
;;
esac

google_cloud_auth
upload_mbp_packages_to_gcp_bucket "build/distributions/" "${MATRIX_TYPE}"
upload_mbp_packages_to_gcp_bucket "build/distributions/" "${TYPE}"

0 comments on commit 0f8ca1c

Please sign in to comment.