55# Skeleton for common build entry script for all elastic
66# clients. Needs to be adapted to individual client usage.
77#
8- # Must be called: ./.ci /make.sh <target> <params>
8+ # Must be called: ./.github /make.sh <target> <params>
99#
1010# Version: 1.1.0
1111#
@@ -36,8 +36,8 @@ STACK_VERSION=$VERSION
3636set -euo pipefail
3737
3838product=" elastic/elasticsearch-serverless-python"
39- output_folder=" .ci /output"
40- codegen_folder=" .ci /output"
39+ output_folder=" .github /output"
40+ codegen_folder=" .github /output"
4141OUTPUT_DIR=" $repo /${output_folder} "
4242REPO_BINDING=" ${OUTPUT_DIR} :/sln/${output_folder} "
4343WORKFLOW=" ${WORKFLOW-staging} "
@@ -114,7 +114,7 @@ echo -e "\033[34;1mINFO: building $product container\033[0m"
114114
115115docker build \
116116 --build-arg BUILDER_UID=" $( id -u) " \
117- --file $repo /.ci /Dockerfile \
117+ --file $repo /.github /Dockerfile \
118118 --tag ${product} \
119119 .
120120
@@ -126,21 +126,21 @@ echo -e "\033[34;1mINFO: running $product container\033[0m"
126126
127127if [[ " $CMD " == " assemble" ]]; then
128128
129- # Build dists into .ci /output
129+ # Build dists into .github /output
130130 docker run \
131131 -u " $( id -u) " \
132- --rm -v $repo /.ci /output:/code/elasticsearch-serverless-python/dist \
132+ --rm -v $repo /.github /output:/code/elasticsearch-serverless-python/dist \
133133 $product \
134134 /bin/bash -c " python /code/elasticsearch-serverless-python/utils/build-dists.py $VERSION "
135135
136- # Verify that there are dists in .ci /output
137- if compgen -G " .ci /output/*" > /dev/null; then
136+ # Verify that there are dists in .github /output
137+ if compgen -G " .github /output/*" > /dev/null; then
138138
139- # Tarball everything up in .ci /output
139+ # Tarball everything up in .github /output
140140 if [[ " $WORKFLOW " == ' snapshot' ]]; then
141- cd $repo /.ci /output && tar -czvf elasticsearch-serverless-python-$VERSION -SNAPSHOT.tar.gz * && cd -
141+ cd $repo /.github /output && tar -czvf elasticsearch-serverless-python-$VERSION -SNAPSHOT.tar.gz * && cd -
142142 else
143- cd $repo /.ci /output && tar -czvf elasticsearch-serverless-python-$VERSION .tar.gz * && cd -
143+ cd $repo /.github /output && tar -czvf elasticsearch-serverless-python-$VERSION .tar.gz * && cd -
144144 fi
145145
146146 echo -e " \033[32;1mTARGET: successfully assembled client v$VERSION \033[0m"
@@ -175,5 +175,5 @@ if [[ "$CMD" == "examplesgen" ]]; then
175175 echo " TODO"
176176fi
177177
178- echo " Must be called with '.ci /make.sh [command]"
178+ echo " Must be called with '.github /make.sh [command]"
179179exit 1
0 commit comments