Skip to content

Commit

Permalink
Fix python layer release script (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl authored May 31, 2023
1 parent ef1851d commit 0843c07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-layer-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Show directory contents
run: |
ls -al
working-directory: python/sample-apps
working-directory: python/src

- name: Save Python SDK Version
id: save-python-sdk-version
Expand All @@ -42,7 +42,7 @@ jobs:
name: Save assembled layer to build
with:
name: opentelemetry-python-layer.zip
path: python/sample-apps/opentelemetry-python-layer.zip
path: python/src/opentelemetry-python-layer.zip

publish-layer:
uses: ./.github/workflows/layer-publish.yml
Expand Down
2 changes: 1 addition & 1 deletion python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ Scripts and files used to build AWS Lambda Layers for running OpenTelemetry on A
* [Docker](https://docs.docker.com/get-docker)
3. Run aws configure to [set aws credential(with administrator permissions)](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-mac.html#serverless-sam-cli-install-mac-iam-permissions) and default region.
4. Download a local copy of this repository from Github.
5. `cd python/sample-apps`
5. `cd python/src`
6. If you just want to create a zip file with the OpenTelemetry Python AWS Lambda layer, then use the `-b true` option: `bash run.sh -n <LAYER_NAME_HERE> -b true`
7. If you want to create the layer and automatically publish it, use no options: `bash run.sh`
2 changes: 2 additions & 0 deletions utils/sam/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,6 @@ main() {
fi
}

rm -rf .aws-sam

main "$@"

0 comments on commit 0843c07

Please sign in to comment.