File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 33set -euo pipefail
44
55version_tag=$( jq -r " .version" ./package.json)
6- elastic_image=" docker.elastic.co/mcp/elasticsearch: $version_tag "
6+ elastic_image=" docker.elastic.co/mcp/elasticsearch"
77
88# build image
99docker buildx create --use --name builder
1010docker buildx inspect --bootstrap
11- docker buildx build -t " $elastic_image " --platform linux/amd64,linux/arm64 --builder builder --load .
11+ docker buildx build -t " $elastic_image :$version_tag " --platform linux/amd64,linux/arm64 --builder builder --load .
12+ docker tag " $elastic_image :$version_tag " " $elastic_image :latest"
1213
1314# push to docker.elastic.co
1415ELASTIC_PASSWORD=$( vault read -field=password secret/ci/elastic-mcp-server-elasticsearch/devtoolsmachine)
1516docker login -u " devtoolsmachine" -p " $ELASTIC_PASSWORD " docker.elastic.co
16- docker push " $elastic_image "
17+ docker push " $elastic_image :$version_tag "
18+ docker push " $elastic_image :latest"
1719docker logout docker.elastic.co
You can’t perform that action at this time.
0 commit comments