Skip to content

Commit

Permalink
Merge branch 'main' into updatecli_bump-elastic-stack-snapshot-main
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jul 26, 2023
2 parents 0eaf045 + d2e71b6 commit 6287263
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .buildkite/scripts/dra_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ set -euo pipefail

source .buildkite/scripts/common.sh

VERSION="$(awk '/const DefaultVersion/{print $NF}' version/version.go | tr -d '"')"
FOLDER_PATH="build/distributions"
BASE_DIR="${WORKSPACE}/${FOLDER_PATH}"
DRA_OUTPUT="release-manager.out"
PROJECT="fleet-server"
TYPE=${1}
BRANCH="${BUILDKITE_BRANCH}"

VERSION=$(make get-version)

if [[ "${VERSION}" == *"-SNAPSHOT"* || "${VERSION}" == "" ]]; then
echo "The 'version' parameter is required and it cannot contain the suffix '-SNAPSHOT'."
exit 1
Expand Down Expand Up @@ -40,6 +41,6 @@ mkdir -p ${BASE_DIR}/reports
./dev-tools/dependencies-report --csv ${BASE_DIR}/reports/dependencies-${VERSION}.csv
cd ${BASE_DIR}/reports && shasum -a 512 dependencies-${VERSION}.csv > dependencies-${VERSION}.csv.sha512

cd ${BASE_DIR}
echo ${BASE_DIR}
./.buildkite/scripts/release-manager.sh
cd $(dirname ${WORKSPACE})
./.buildkite/scripts/release-manager.sh #TODO use "echo" for rollback

0 comments on commit 6287263

Please sign in to comment.