Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aj/verify poetry #447

Merged
merged 3 commits into from
Mar 13, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions ci/input_files/build.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ stages:
- virtualenv venv
- source venv/bin/activate
- pip install .[dev]
- pip install poetry

# This is for serverless framework
.install-node: &install-node
Expand Down Expand Up @@ -167,6 +168,7 @@ publish-pypi-package:
stage: publish
tags: ["arch:amd64"]
image: registry.ddbuild.io/images/docker:20.10-py3
before_script: *python-before-script
cache: []
rules:
- if: '$CI_COMMIT_TAG =~ /^v.*/'
Expand Down
8 changes: 8 additions & 0 deletions ci/publish_pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ PYPI_TOKEN=$(aws ssm get-parameter \
--out text)
# Builds the lambda layer and upload to Pypi

if [ -z "$CI_COMMIT_TAG" ]; then
printf "[Error] No CI_COMMIT_TAG found.\n"
printf "Exiting script...\n"
exit 1
else
printf "Tag found in environment: $CI_COMMIT_TAG\n"
fi

# Clear previously built distributions
if [ -d "dist" ]; then
echo "Removing folder 'dist' to clear previously built distributions"
Expand Down