File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ ENV BUILDER_GROUP elastic
1212RUN groupadd --system -g ${BUILDER_GID} ${BUILDER_GROUP} \
1313 && useradd --system --shell /bin/bash -u ${BUILDER_UID} -g ${BUILDER_GROUP} -d /var/lib/elastic -m elastic 1>/dev/null 2>/dev/null \
1414 && mkdir -p /code/elasticsearch-py && mkdir /code/elasticsearch-py/build \
15- && chown -R ${BUILDER_USER}:${BUILDER_GROUP} /code/elasticsearch-py
15+ && chown -R ${BUILDER_USER}:${BUILDER_GROUP} /code/
1616COPY --chown=$BUILDER_USER:$BUILDER_GROUP . .
1717WORKDIR /code/elasticsearch-py
1818USER ${BUILDER_USER}:${BUILDER_GROUP}
Original file line number Diff line number Diff line change @@ -164,7 +164,15 @@ if [[ "$CMD" == "bump" ]]; then
164164fi
165165
166166if [[ " $CMD " == " codegen" ]]; then
167- echo " TODO"
167+ docker run \
168+ --rm -v $repo :/code/elasticsearch-py \
169+ $product \
170+ /bin/bash -c " cd /code && python -m pip install nox && \
171+ git clone https://$CLIENTS_GITHUB_TOKEN @github.com/elastic/elastic-client-generator-python.git && \
172+ cd /code/elastic-client-generator-python && GIT_BRANCH=$VERSION python -m nox -s generate-es && \
173+ cd /code/elasticsearch-py && python -m nox -s format"
174+
175+ exit 0
168176fi
169177
170178if [[ " $CMD " == " docsgen" ]]; then
You can’t perform that action at this time.
0 commit comments