Skip to content

Commit 2212b5b

Browse files
committed
Added the WORKFLOW env in make assemble for DRA
1 parent 538ce7b commit 2212b5b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.ci/make.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ TASK=$1
3333
TASK_ARGS=()
3434
VERSION=$2
3535
STACK_VERSION=$VERSION
36+
WORKFLOW=${WORKFLOW-staging}
3637
set -euo pipefail
3738

3839
product="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

0 commit comments

Comments
 (0)