From 0f8ca1c39676dd2437c556e51337c37344277ef4 Mon Sep 17 00:00:00 2001 From: sharbuz <87968844+sharbuz@users.noreply.github.com> Date: Thu, 27 Jul 2023 00:41:28 +0300 Subject: [PATCH] fix package type var (#2834) * 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 --- .buildkite/scripts/package.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.buildkite/scripts/package.sh b/.buildkite/scripts/package.sh index d03b1d078..f053561a6 100755 --- a/.buildkite/scripts/package.sh +++ b/.buildkite/scripts/package.sh @@ -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 @@ -27,10 +27,11 @@ 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" @@ -38,4 +39,4 @@ case "${TYPE}" in esac google_cloud_auth -upload_mbp_packages_to_gcp_bucket "build/distributions/" "${MATRIX_TYPE}" +upload_mbp_packages_to_gcp_bucket "build/distributions/" "${TYPE}"