Skip to content

Commit 2b8e964

Browse files
authored
Move from .ci to .github (#32)
1 parent a8be5ef commit 2b8e964

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

.buildkite/run-tests

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ echo -e "PYTHON_CONNECTION_CLASS $PYTHON_CONNECTION_CLASS"
5454
echo -e "--- :docker: Build elasticsearch-serverless-python container"
5555

5656
docker build \
57-
--file .ci/Dockerfile \
57+
--file .github/Dockerfile \
5858
--tag elasticsearch-serverless-python \
5959
--build-arg "PYTHON_VERSION=$PYTHON_VERSION" \
6060
.
File renamed without changes.

.ci/make.sh renamed to .github/make.sh

+12-12
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: ./.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
3636
set -euo pipefail
3737

3838
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"
4141
OUTPUT_DIR="$repo/${output_folder}"
4242
REPO_BINDING="${OUTPUT_DIR}:/sln/${output_folder}"
4343
WORKFLOW="${WORKFLOW-staging}"
@@ -114,7 +114,7 @@ echo -e "\033[34;1mINFO: building $product container\033[0m"
114114

115115
docker 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

127127
if [[ "$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"
176176
fi
177177

178-
echo "Must be called with '.ci/make.sh [command]"
178+
echo "Must be called with '.github/make.sh [command]"
179179
exit 1
File renamed without changes.

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
python -m pip install nox
8080
- name: Run tests
8181
shell: bash
82-
run: .ci/run-nox.sh
82+
run: .github/run-nox.sh
8383
env:
8484
PYTHON_VERSION: ${{ matrix.python-version }}
8585
NOX_SESSION: ${{ matrix.nox-session }}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ cython_debug/
143143
# elasticsearch files
144144
test_elasticsearch/cover
145145
test_elasticsearch/local.py
146-
.ci/output
146+
.github/output
147147
junit/
148148

149149
# sample code for GitHub issues

0 commit comments

Comments
 (0)