[demo env] Fix demo environment elasticsearch docker image url (#128007)

https://github.com/elastic/kibana/pull/127154 introduced a second docker
image to our elasticsearch snapshot manifest. Currently the demo
environment only expects one docker image.  This updates the jq
selection to match only the elasticsearch docker image uploaded to gcs
This commit is contained in:
Jonathan Budzenski 2022-03-17 17:04:29 -05:00 committed by GitHub
parent 340c7d4fd4
commit 655d692945
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ mkdir -p target
export ES_IMAGE="gcr.io/elastic-kibana-184716/demo/elasticsearch:$DEPLOYMENT_NAME-$(git rev-parse HEAD)"
DOCKER_EXPORT_URL=$(curl https://storage.googleapis.com/kibana-ci-es-snapshots-daily/$DEPLOYMENT_VERSION/manifest-latest-verified.json | jq -r '.archives | .[] | select(.platform=="docker") | .url')
DOCKER_EXPORT_URL=$(curl https://storage.googleapis.com/kibana-ci-es-snapshots-daily/$DEPLOYMENT_VERSION/manifest-latest-verified.json | jq -r '.archives | .[] | select(.url | test("docker-image")) | .url')
curl "$DOCKER_EXPORT_URL" > target/elasticsearch-docker.tar.gz
docker load < target/elasticsearch-docker.tar.gz
docker tag "docker.elastic.co/elasticsearch/elasticsearch:$DEPLOYMENT_VERSION-SNAPSHOT" "$ES_IMAGE"