Skip to content

Commit 817efa6

Browse files
committed
Moved make.sh in .github
1 parent b635a0d commit 817efa6

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed
File renamed without changes.

.buildkite/make.sh renamed to .github/make.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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: ./.buildkite/make.sh <target> <params>
8+
# Must be called: ./.github/make.sh <target> <params>
99
#
1010
# Version: 1.1.1
1111
#
@@ -37,8 +37,8 @@ WORKFLOW=${WORKFLOW-staging}
3737
set -euo pipefail
3838

3939
product="elastic/elasticsearch-php"
40-
output_folder=".buildkite/output"
41-
codegen_folder=".buildkite/output"
40+
output_folder=".github/output"
41+
codegen_folder=".github/output"
4242
OUTPUT_DIR="$repo/${output_folder}"
4343
REPO_BINDING="${OUTPUT_DIR}:/sln/${output_folder}"
4444
mkdir -p "$OUTPUT_DIR"
@@ -115,7 +115,7 @@ esac
115115

116116
#echo -e "\033[34;1mINFO: building $product container\033[0m"
117117

118-
#docker build --file .buildkite/Dockerfile --tag ${product} \
118+
#docker build --file .github/Dockerfile --tag ${product} \
119119
# --build-arg USER_ID="$(id -u)" \
120120
# --build-arg GROUP_ID="$(id -g)" .
121121

@@ -140,15 +140,15 @@ esac
140140

141141
if [[ "$CMD" == "assemble" ]]; then
142142
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}/."
144144

145-
if compgen -G ".buildkite/output/*" > /dev/null; then
145+
if compgen -G ".github/output/*" > /dev/null; then
146146
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 -
148148
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 -
150150
fi
151-
rm -Rf "${repo}/.buildkite/output/elasticsearch-php"
151+
rm -Rf "${repo}/.github/output/elasticsearch-php"
152152
echo -e "\033[32;1mTARGET: successfully assembled client v$VERSION\033[0m"
153153
exit 0
154154
else
@@ -166,8 +166,8 @@ if [[ "$CMD" == "bump" ]]; then
166166

167167
MINOR_VERSION=`echo $VERSION | grep -Eo "[0-9]+.[0-9]+"`
168168

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
171171

172172
# Change version to .github/workflows/test.yml
173173
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

Comments
 (0)