File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
pull_docker_snapshot () {
8
8
project=" ${1?project name required} "
9
+ stack_version_alias=" ${2?stack version alias required} "
9
10
local docker_image=" docker.elastic.co/${project} /${project}${DISTRIBUTION_SUFFIX} :${ELASTIC_STACK_VERSION} "
10
11
echo " Pulling $docker_image "
11
12
if docker pull " $docker_image " ; then
12
13
echo " docker pull successful"
13
14
else
14
- case " $ELASTIC_STACK_VERSION_ARG " in
15
+ case $stack_version_alias in
15
16
" 8.previous" |" 8.current" |" 8.next" )
16
17
exit 1
17
18
;;
@@ -30,8 +31,8 @@ if [ -z "${ELASTIC_STACK_VERSION}" ]; then
30
31
exit 1
31
32
fi
32
33
33
- # save the original arg if needed
34
- ELASTIC_STACK_VERSION_ARG =" $ELASTIC_STACK_VERSION "
34
+ # The ELASTIC_STACK_VERSION may be an alias, save the original before translating it
35
+ ELASTIC_STACK_VERSION_ALIAS =" $ELASTIC_STACK_VERSION "
35
36
36
37
echo " Fetching versions from $VERSION_URL "
37
38
VERSIONS=$( curl -s $VERSION_URL )
@@ -64,7 +65,7 @@ export DISTRIBUTION_SUFFIX
64
65
echo " Testing against version: $ELASTIC_STACK_VERSION (distribution: ${DISTRIBUTION:- " default" } )"
65
66
66
67
if [[ " $ELASTIC_STACK_VERSION " = * " -SNAPSHOT" ]]; then
67
- pull_docker_snapshot " logstash"
68
+ pull_docker_snapshot " logstash" $ELASTIC_STACK_VERSION_ALIAS
68
69
fi
69
70
70
71
if [ -f Gemfile.lock ]; then
You can’t perform that action at this time.
0 commit comments