-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
fd21054
commit d91bb8a
Showing
3 changed files
with
63 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# This script is executed by the DRA stage. | ||
# It prepares the required files to be consumed by the release-manager | ||
# It can be published as snapshot or staging, for such you use | ||
# the paramater $0 "snapshot" or $0 "staging" | ||
# | ||
set -ueo pipefail | ||
|
||
readonly TYPE=${1:-snapshot} | ||
|
||
# rename dependencies.csv to the name expected by release-manager. | ||
VERSION=$(make get-version) | ||
FINAL_VERSION=$VERSION-SNAPSHOT | ||
if [ "$TYPE" != "snapshot" ] ; then | ||
FINAL_VERSION=$VERSION | ||
fi | ||
VERSION=$(make get-version) | ||
mv build/distributions/dependencies.csv \ | ||
build/distributions/dependencies-"$FINAL_VERSION".csv | ||
|
||
# rename docker files to support the unified release format. | ||
# TODO: this could be supported by the package system itself | ||
# or the unified release process the one to do the transformation | ||
# See https://github.com/elastic/beats/pull/30895 | ||
find build/distributions -name '*linux-arm64.docker.tar.gz*' -print0 | | ||
while IFS= read -r -d '' file | ||
do | ||
echo "Rename file $file" | ||
mv "$file" "${file/linux-arm64.docker.tar.gz/docker-image-linux-arm64.tar.gz}" | ||
done | ||
|
||
find build/distributions -name '*linux-amd64.docker.tar.gz*' -print0 | | ||
while IFS= read -r -d '' file | ||
do | ||
echo "Rename file $file" | ||
mv "$file" "${file/linux-amd64.docker.tar.gz/docker-image-linux-amd64.tar.gz}" | ||
done |
This file was deleted.
Oops, something went wrong.