File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ TASK=$1
3333TASK_ARGS=()
3434VERSION=$2
3535STACK_VERSION=$VERSION
36+ WORKFLOW=${WORKFLOW-staging}
3637set -euo pipefail
3738
3839product=" elastic/elasticsearch-php"
@@ -142,7 +143,11 @@ if [[ "$CMD" == "assemble" ]]; then
142143 rsync -ar --exclude=.ci --exclude=.git --filter=' :- .gitignore' " $PWD " " ${output_folder} /."
143144
144145 if compgen -G " .ci/output/*" > /dev/null; then
145- cd $repo /.ci/output && tar -czf elasticsearch-php-$VERSION .tar.gz * && cd -
146+ if [[ " $WORKFLOW " == " snapshot" ]]; then
147+ cd $repo /.ci/output && tar -czf elasticsearch-php-$VERSION -SNAPSHOT.tar.gz * && cd -
148+ else
149+ cd $repo /.ci/output && tar -czf elasticsearch-php-$VERSION .tar.gz * && cd -
150+ fi
146151 rm -Rf " ${repo} /.ci/output/elasticsearch-php"
147152 echo -e " \033[32;1mTARGET: successfully assembled client v$VERSION \033[0m"
148153 exit 0
You can’t perform that action at this time.
0 commit comments