Skip to content

Commit fdcfa72

Browse files
committed
Fix version extraction in buildkite pipeline
1 parent 862dc9c commit fdcfa72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/docker-push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euo pipefail
44

5-
version_tag=$(awk -F ' = ' '$1 ~ /version/ { gsub(/[\"]/, "", $2); printf("%s",$2) }' Cargo.toml)
5+
version_tag=$(grep '^version = ' Cargo.toml | sed -e 's/[^"]*"//' -e 's/".*//')
66
elastic_image="docker.elastic.co/mcp/elasticsearch"
77

88
# build image

0 commit comments

Comments
 (0)