Skip to content

PIE-3516 part 1: get ready to use CD pipeline#37

Merged
zhming0 merged 1 commit intomainfrom
ming/pie-3516-part-1
Mar 25, 2025
Merged

PIE-3516 part 1: get ready to use CD pipeline#37
zhming0 merged 1 commit intomainfrom
ming/pie-3516-part-1

Conversation

@zhming0
Copy link
Contributor

@zhming0 zhming0 commented Mar 25, 2025

  • Slightly revamp the doc on releasing this tool.
  • Add CD code for automatic deployment.

@zhming0 zhming0 requested review from a team March 25, 2025 04:00
Comment on lines +14 to +18
plugins:
- cluster-secrets#v1.0.0:
variables:
TWINE_PASSWORD: test-collector-python-pypi-api-token
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This pipeline isn't working yet as I am still pending on some plumbing works to get this secret provisioned.

But merging this PR has no harm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will use a follow-up PR to replace this with AWS SSM

@zhming0 zhming0 requested a review from nprizal March 25, 2025 04:03
if: build.tag != null
env:
# It should be a noop
TWINE_USERNAME: __token__
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what this referring to. Can you explain this bit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this input is a noop for PyPi. According to: twine upload --help

The username to authenticate to the repository (package index) as. Has no effect on PyPI or TestPyPI. (Can
also be set via TWINE_USERNAME environment variable.)

But I set it anyway to prevent prompt showing up.

I guess I could also use --non-interactive, but it would break UX when we use the script manually. 🤷🏿 so I am not sure which one is better.

Copy link
Contributor

Choose a reason for hiding this comment

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

Gotcha! Maybe worth putting that quote in the code as comment?

@zhming0 zhming0 force-pushed the ming/pie-3516-part-1 branch from d2e48bc to 7a4f930 Compare March 25, 2025 05:20
@zhming0 zhming0 merged commit 2fc7513 into main Mar 25, 2025
11 checks passed
@zhming0 zhming0 deleted the ming/pie-3516-part-1 branch March 25, 2025 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants