-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently just copied from the release docker script. I'm just checkpointing while I work on other thigns.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eo pipefail | ||
|
||
source .buildkite/retry.sh | ||
|
||
set +x | ||
RELEASE_VERSION=$(buildkite-agent meta-data get RELEASE_VERSION) | ||
# login to docker registry | ||
DOCKER_PASSWORD=$(vault read -field token /secret/ci/elastic-rally/release/docker-hub-rally) | ||
retry 5 docker login -u elasticmachine -p $DOCKER_PASSWORD | ||
unset DOCKER_PASSWORD | ||
|
||
tmp_dir=$(mktemp --directory) | ||
pushd "$tmp_dir" | ||
git clone https://github.com/elastic/rally | ||
pushd rally | ||
git checkout "${RELEASE_VERSION}" | ||
git --no-pager show | ||
|
||
set -x | ||
export TERM=dumb | ||
export LC_ALL=en_US.UTF-8 | ||
./release-docker.sh "$RELEASE_VERSION" | ||
|
||
popd | ||
popd | ||
rm -rf "$tmp_dir" | ||
|
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