Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/publish_prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ AWS_PROFILE=govcloud-us1-fed-human-engineering aws sts get-caller-identity
aws-vault exec prod-engineering -- aws sts get-caller-identity

# Ensure pypi registry access
read -p "Do you have the PyPi login credentials for datadog account (y/n)?" CONT
read -p "Do you have access to PyPI (y/n)?" CONT
if [ "$CONT" != "y" ]; then
echo "Exiting"
exit 1
Expand Down
7 changes: 5 additions & 2 deletions scripts/pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ if [ -d "dist" ]; then
rm -rf dist;
fi

# Publish to pypi
poetry publish --build
echo "Please enter the PyPI token (password) for datadog-lambda-python"
echo "This can be found in 1password under the shared-serverless vault"
read -p "Token name: " TOKEN

# Publish to pypi
poetry publish --build --username __token__ --password $TOKEN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!