Skip to content

Commit c4a92f9

Browse files
author
Alex Boten
authored
[chore] update python release to use build.sh (aws-observability#734)
This is creating the zip file without the sam metadata. Signed-off-by: Alex Boten <[email protected]>
1 parent e5bc4f6 commit c4a92f9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/release-layer-python.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
- name: Build
2626
run: |
2727
cd python/src
28-
PYTHON_SDK_VERSION=$(./run.sh -n opentelemetry-python-layer -b true 2>&1 > /dev/null | sed -n "s/opentelemetry-sdk==\(.*\)/\1/p")
28+
PYTHON_SDK_VERSION=$(./build.sh 2>&1 > /dev/null | sed -n "s/opentelemetry-sdk==\(.*\)/\1/p")
2929
shell: bash
3030

3131
- name: Show directory contents
3232
run: |
3333
ls -al
34-
working-directory: python/src
34+
working-directory: python/src/build
3535

3636
- name: Save Python SDK Version
3737
id: save-python-sdk-version
@@ -42,7 +42,7 @@ jobs:
4242
name: Save assembled layer to build
4343
with:
4444
name: opentelemetry-python-layer.zip
45-
path: python/src/opentelemetry-python-layer.zip
45+
path: python/src/build/opentelemetry-python-layer.zip
4646

4747
publish-layer:
4848
uses: ./.github/workflows/layer-publish.yml

python/src/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
set -e
33

44
mkdir -p build
5-
docker build -t aws-otel-lambda-python-layer otel
5+
docker build --progress plain -t aws-otel-lambda-python-layer otel
66
docker run --rm -v "$(pwd)/build:/out" aws-otel-lambda-python-layer

python/src/otel/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ RUN mkdir -p /build && \
1919
rm -rf /build/python/boto* && \
2020
rm -rf /build/python/urllib3* && \
2121
cd /build && \
22-
zip -r layer.zip otel-instrument python
22+
zip -r opentelemetry-python-layer.zip otel-instrument python
2323

24-
CMD cp /build/layer.zip /out/layer.zip
24+
CMD cp /build/opentelemetry-python-layer.zip /out/opentelemetry-python-layer.zip

0 commit comments

Comments
 (0)