Skip to content

Commit

Permalink
feat: Add dev docker build script
Browse files Browse the repository at this point in the history
Currently just copied from the release docker script. I'm just
checkpointing while I work on other thigns.
  • Loading branch information
favilo committed Sep 6, 2024
1 parent 4ef1186 commit 70f8599
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .buildkite/dev-docker/run.sh
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"

1 change: 1 addition & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
- resource:rally-it-pipeline
- resource:rally-it-serverless-pipeline
- resource:rally-releaser-docker-pipeline
- resource:rally-dev-docker-build-pipeline


# Declare Rally's Buildkite IT pipeline.
Expand Down

0 comments on commit 70f8599

Please sign in to comment.