5
5
# Skeleton for common build entry script for all elastic
6
6
# clients. Needs to be adapted to individual client usage.
7
7
#
8
- # Must be called: ./.ci /make.sh <target> <params>
8
+ # Must be called: ./.github /make.sh <target> <params>
9
9
#
10
10
# Version: 1.1.0
11
11
#
@@ -36,8 +36,8 @@ STACK_VERSION=$VERSION
36
36
set -euo pipefail
37
37
38
38
product=" elastic/elasticsearch-serverless-python"
39
- output_folder=" .ci /output"
40
- codegen_folder=" .ci /output"
39
+ output_folder=" .github /output"
40
+ codegen_folder=" .github /output"
41
41
OUTPUT_DIR=" $repo /${output_folder} "
42
42
REPO_BINDING=" ${OUTPUT_DIR} :/sln/${output_folder} "
43
43
WORKFLOW=" ${WORKFLOW-staging} "
@@ -114,7 +114,7 @@ echo -e "\033[34;1mINFO: building $product container\033[0m"
114
114
115
115
docker build \
116
116
--build-arg BUILDER_UID=" $( id -u) " \
117
- --file $repo /.ci /Dockerfile \
117
+ --file $repo /.github /Dockerfile \
118
118
--tag ${product} \
119
119
.
120
120
@@ -126,21 +126,21 @@ echo -e "\033[34;1mINFO: running $product container\033[0m"
126
126
127
127
if [[ " $CMD " == " assemble" ]]; then
128
128
129
- # Build dists into .ci /output
129
+ # Build dists into .github /output
130
130
docker run \
131
131
-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 \
133
133
$product \
134
134
/bin/bash -c " python /code/elasticsearch-serverless-python/utils/build-dists.py $VERSION "
135
135
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
138
138
139
- # Tarball everything up in .ci /output
139
+ # Tarball everything up in .github /output
140
140
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 -
142
142
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 -
144
144
fi
145
145
146
146
echo -e " \033[32;1mTARGET: successfully assembled client v$VERSION \033[0m"
@@ -175,5 +175,5 @@ if [[ "$CMD" == "examplesgen" ]]; then
175
175
echo " TODO"
176
176
fi
177
177
178
- echo " Must be called with '.ci /make.sh [command]"
178
+ echo " Must be called with '.github /make.sh [command]"
179
179
exit 1
0 commit comments