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: ./.buildkite /make.sh <target> <params>
8
+ # Must be called: ./.github /make.sh <target> <params>
9
9
#
10
10
# Version: 1.1.1
11
11
#
@@ -37,8 +37,8 @@ WORKFLOW=${WORKFLOW-staging}
37
37
set -euo pipefail
38
38
39
39
product=" elastic/elasticsearch-php"
40
- output_folder=" .buildkite /output"
41
- codegen_folder=" .buildkite /output"
40
+ output_folder=" .github /output"
41
+ codegen_folder=" .github /output"
42
42
OUTPUT_DIR=" $repo /${output_folder} "
43
43
REPO_BINDING=" ${OUTPUT_DIR} :/sln/${output_folder} "
44
44
mkdir -p " $OUTPUT_DIR "
115
115
116
116
# echo -e "\033[34;1mINFO: building $product container\033[0m"
117
117
118
- # docker build --file .buildkite /Dockerfile --tag ${product} \
118
+ # docker build --file .github /Dockerfile --tag ${product} \
119
119
# --build-arg USER_ID="$(id -u)" \
120
120
# --build-arg GROUP_ID="$(id -g)" .
121
121
@@ -140,15 +140,15 @@ esac
140
140
141
141
if [[ " $CMD " == " assemble" ]]; then
142
142
echo -e " \033[34;1mINFO: copy artefacts\033[0m"
143
- rsync -ar --exclude=.buildkite --exclude=.git --filter=' :- .gitignore' " $PWD " " ${output_folder} /."
143
+ rsync -ar --exclude=.github --exclude=.git --filter=' :- .gitignore' " $PWD " " ${output_folder} /."
144
144
145
- if compgen -G " .buildkite /output/*" > /dev/null; then
145
+ if compgen -G " .github /output/*" > /dev/null; then
146
146
if [[ " $WORKFLOW " == " snapshot" ]]; then
147
- cd $repo /.buildkite /output && tar -czf elasticsearch-php-$VERSION -SNAPSHOT.tar.gz * && cd -
147
+ cd $repo /.github /output && tar -czf elasticsearch-php-$VERSION -SNAPSHOT.tar.gz * && cd -
148
148
else
149
- cd $repo /.buildkite /output && tar -czf elasticsearch-php-$VERSION .tar.gz * && cd -
149
+ cd $repo /.github /output && tar -czf elasticsearch-php-$VERSION .tar.gz * && cd -
150
150
fi
151
- rm -Rf " ${repo} /.buildkite /output/elasticsearch-php"
151
+ rm -Rf " ${repo} /.github /output/elasticsearch-php"
152
152
echo -e " \033[32;1mTARGET: successfully assembled client v$VERSION \033[0m"
153
153
exit 0
154
154
else
@@ -166,8 +166,8 @@ if [[ "$CMD" == "bump" ]]; then
166
166
167
167
MINOR_VERSION=` echo $VERSION | grep -Eo " [0-9]+.[0-9]+" `
168
168
169
- # Change version to .buildkite /pipeline.yml
170
- sed -i " s/STACK_VERSION: [0-9]\+\.[0-9]\+-SNAPSHOT/STACK_VERSION: $MINOR_VERSION -SNAPSHOT/" $repo /.buildkite /pipeline.yml
169
+ # Change version to .github /pipeline.yml
170
+ sed -i " s/STACK_VERSION: [0-9]\+\.[0-9]\+-SNAPSHOT/STACK_VERSION: $MINOR_VERSION -SNAPSHOT/" $repo /.github /pipeline.yml
171
171
172
172
# Change version to .github/workflows/test.yml
173
173
sed -i " s/es-version: \[[0-9]\+\.[0-9]\+\.\?[0-9]\?-SNAPSHOT\]/es-version: \[$MINOR_VERSION -SNAPSHOT\]/" $repo /.github/workflows/test.yml
0 commit comments